microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

Snippet Generator does not handle custom media types like application/zip

Open darrelmiller opened this issue 2 years ago • 1 comments

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.

darrelmiller avatar Mar 15 '23 21:03 darrelmiller

duplicate of #336

zengin avatar Mar 17 '23 18:03 zengin