microsoft-graph-devx-api
microsoft-graph-devx-api copied to clipboard
Snippet Generator does not handle custom media types like application/zip
See the examples in this document https://learn.microsoft.com/en-us/graph/api/teamsapp-publish?view=graph-rest-1.0&tabs=http
This example fails to generate any snippet for go and PowerShell
POST https://graph.microsoft.com/v1.0/appCatalogs/teamsApps
Content-type: application/zip
[Zip file containing a Teams app package]
However, this example generates snippets for all languages but just assumes there is no body
POST https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?requiresReview=true
Content-type: application/zip
var graphClient = new GraphServiceClient(requestAdapter);
await graphClient.AppCatalogs.TeamsApps.PostAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Requiresreview = true;
});
We need to provide guidance to teams on how to format these kinds of HTTP examples to show the user that some kind of body is required, and we need to generate snippets that actually process the body properly.
duplicate of #336