30 references to SupportedRequestFormats
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
86foreach (var request in description.SupportedRequestFormats)
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
76apiDescription.SupportedRequestFormats.Add(new ApiRequestFormat { MediaType = "application/json" });
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (2)
142apiDescription.SupportedRequestFormats.Add(format); 150apiDescription.SupportedRequestFormats.Add(new ApiRequestFormat
EndpointMetadataApiDescriptionProvider.cs (1)
154var supportedRequestFormats = apiDescription.SupportedRequestFormats;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (23)
DefaultApiDescriptionProviderTest.cs (6)
1219Assert.Empty(description.SupportedRequestFormats); 1234description.SupportedRequestFormats.OrderBy(f => f.MediaType.ToString()), 1258description.SupportedRequestFormats.OrderBy(f => f.MediaType.ToString()), 1276description.SupportedRequestFormats.OrderBy(f => f.MediaType.ToString()), 1306var format = Assert.Single(description.SupportedRequestFormats); 1457var requestFormat = Assert.Single(description.SupportedRequestFormats);
EndpointMetadataApiDescriptionProviderTest.cs (17)
67var requestFormat = Assert.Single(apiDescription.SupportedRequestFormats); 91Assert.Equal(2, apiDescription.SupportedRequestFormats.Count); 93var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 97var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 110Assert.Equal(2, apiDescription.SupportedRequestFormats.Count); 125Assert.Equal(2, apiDescription.SupportedRequestFormats.Count); 1014context.Results.SelectMany(r => r.SupportedRequestFormats), 1113var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1145var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1177var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1205var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1234var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1263var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1275Assert.Equal(2, apiDescription.SupportedRequestFormats.Count); 1277var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 1281var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1350var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats);
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (2)
465return await GetJsonRequestBody(description.SupportedRequestFormats, bodyParameter, scopedServiceProvider, schemaTransformers, cancellationToken); 473return await GetFormRequestBody(description.SupportedRequestFormats, formParameters, endpointMetadata, scopedServiceProvider, schemaTransformers, cancellationToken);