Graph API URls:
https://graph.microsoft.com/v1.0/sites/:/sites/:/drive
https://graph.microsoft.com/v1.0/sites//drive
Output:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives/$entity",
"createdDateTime": "2021-07-xxTxx:xx:xxZ",
"description": "",
"id": "",
"lastModifiedDateTime": "2021-07-xxTxx:xx:xxZ",
"name": "Documents",
"webUrl": "https:///sites//Shared%20Documents",
"driveType": "documentLibrary",
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"lastModifiedBy": {
"user": {
"displayName": "System Account"
}
},
"owner": {
"user": {
"email": "",
"id": "< id >",
"displayName": "Jatish Khanna"
}
},
"quota": {
...
}
}
--- It works but building a subpath on the above URL have different outputs ----
Example Subpaths:
https://graph.microsoft.com/v1.0/sites/:/sites/:/drive/root
https://graph.microsoft.com/v1.0/sites//drive/root
Adding root to these subpaths doesn't work. This seems issue with the Graph API implementation.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 6079ba35-dd9e-fe22-5254-2b7e0b5ab650
Version Independent ID: 18340dad-3014-1888-7bf7-3da9af9973e7
Content: Get a file or folder - Microsoft Graph v1.0
Content Source: api-reference/v1.0/api/driveitem-get.md
Product: sharepoint
Technology: microsoft-graph
GitHub Login: @JeremyKelley
Microsoft Alias: MSGraphDocsVteam
Github Issue: Details