microsoft-graph-devx-api
microsoft-graph-devx-api copied to clipboard
Snippet generation needs to specify Content-type header if it is not default.
This is to support C# snippet generation for the following HTTP snippet:
https://docs.microsoft.com/en-us/graph/api/teamsapp-update?view=graph-rest-1.0&tabs=http#request
PUT https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8
Content-type: application/zip
Content-length: 244
[Zip file containing a Teams app package]
We will need:
.Request(new IEnumerable<HeaderOption> (Content-type: "application/zip")
instead of only:
.Request()
so that we can override the default stream content type application/octet-stream with application/zip.
Related: https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/issues/160
The TeamsApp metadata needs to be updated to include HasStream=true. The following scenario also needs this:
https://docs.microsoft.com/en-us/graph/api/teamsapp-publish?view=graph-rest-1.0