Closed baywet closed 2 months ago
I assume this is getting a lot easier with the WithUrl
methods, right?
Right, now it'd be
var rawUrl = "the raw URL";
var fileStream = await _graphClient
.Drives["foo"]
.Items["bar"]
.Children["zog"]
.Content
.WithUrl(rawUrl)
.GetAsync()
In some cases the fluent API of kiota clients can be limiting (next links, delta links, expansion limitations on non canonical paths...)
Request builders can be passed a raw URL so the user can still call GetAsync and maintain type checks, serialization, etc...
A good example of that are file APIs for ODSP in the context of Microsoft Graph.
Can be simplified to something like
This topic should also be referenced from MS Graph docs.
Originally created by @baywet at https://github.com/microsoftdocs/openapi-docs-pr/issues/26