Read SharePoint file information via Graph API
Requirements: Graph Explorer knowledge needed.
Create App Registration
An App Registration will be used to authenticate against Microsoft Graph API. For creating an App Registration there is an other detailed guide.
With API Permission "Sites.Selected" you can specify on which SharePoint-Sites the App Registration will have permissions to read/write files and properties.
Get Site ID
To get the site id of your sharepoint sites to to the following link in a Webbrowser:
Example XML Response in Browser:
Get Folder ID
Folder IDs can be found using the graph explorer and the Site ID:
Example JSON Response from Graph API
Get Folder Documents
Get folder documents and content with graph api:
Example JSON Response in Graph Explorer: