Get a drive item from a sharepoint site #834
-
Hey, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @hochmannA1 Microsoft Graph is designed using CSDL (OData), which by nature is very repetitive. The previous generation of SDKs used an OData based code generator, which was extremely limited. The conversion library from OData to OpenAPI only expands "canonical paths" (the main path an object should be at from a design perspective) to avoid over-expansion. Over-expansion is a challenge in itself, if not dealt with, it can lead to "infinite paths" at worst, or at least documents with a much larger set of paths (different ways to access the same object). Not only is Microsoft Graph OpenAPI description one of the largest of the industry (> 5000 paths, > 20k operations...), which is a challenge in itself for most standard tooling, expanding too many paths would make the SDKs unusable (too large of the dependency to a point the linkers/compilers give up). The canonical path for drive items is To access other paths, you can either:
And access the fluent API below just as you would on the canonical path. Let us know if you have any additional comments or questions. |
Beta Was this translation helpful? Give feedback.
Hi @hochmannA1
Thank you for using the SDK and for reaching out.
Microsoft Graph is designed using CSDL (OData), which by nature is very repetitive. The previous generation of SDKs used an OData based code generator, which was extremely limited. The conversion library from OData to OpenAPI only expands "canonical paths" (the main path an object should be at from a design perspective) to avoid over-expansion. Over-expansion is a challenge in itself, if not dealt with, it can lead to "infinite paths" at worst, or at least documents with a much larger set of paths (different ways to access the same object).
Not only is Microsoft Graph OpenAPI description one of the largest of the industry (>…