msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

Drive Root does not contain Delta property

Open adamijak opened this issue 2 years ago • 4 comments

Describe the bug Documentation here only mentions .../root/delta path. Sdk only allows you to use .../items/root/delta path, which is not documented.

Expected behavior Clear explanation which endpoint to use and how to use it.

Screenshots image

Client version 5.36.0

adamijak avatar Nov 23 '23 09:11 adamijak

Thanks for raising this @adamijak

To confirm, the drives/{drive-id}/root is the same as drives/{drive-id}/items/root path in the API. The SDK only exposes one of them to avoid exposing too many paths due to the large number of paths as described at this doc.

https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v5.md#drive-item-paths

andrueastman avatar Nov 23 '23 11:11 andrueastman

Thank you. Now I can see the intention for not exposing too many paths. It would be nice to update documentation then.

adamijak avatar Nov 23 '23 14:11 adamijak

@adamijak Just to clarify, which documentation would you say specifically would be needing updates?

andrueastman avatar Nov 24 '23 07:11 andrueastman

This one I would expect the HTTP request section to look like

GET /drives/{drive-id}/root/delta
GET /groups/{groupId}/drive/root/delta
GET /me/drive/root/delta
GET /sites/{siteId}/drive/root/delta
GET /users/{userId}/drive/root/delta
GET /drives/{drive-id}/items/{item-id | "root"}/delta
GET /groups/{groupId}/drive/items/{item-id | "root"}/delta
GET /me/drive/items/{item-id | "root"}/delta
GET /sites/{siteId}/drive/items/{item-id | "root"}/delta
GET /users/{userId}/drive/items/{item-id | "root"}/delta

adamijak avatar Nov 26 '23 12:11 adamijak