7 instantiations of ApiRequestFormat
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)
150apiDescription.SupportedRequestFormats.Add(new ApiRequestFormat 440results.Add(new ApiRequestFormat()
EndpointMetadataApiDescriptionProvider.cs (1)
158supportedRequestFormats.Add(new ApiRequestFormat
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiDocumentService.cs (3)
490supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/x-www-form-urlencoded" }]; 642supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/octet-stream" }]; 648supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/json" }];
25 references to ApiRequestFormat
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
86foreach (var request in description.SupportedRequestFormats)
Microsoft.AspNetCore.Mvc.Abstractions (2)
ApiExplorer\ApiDescription.cs (2)
51public IList<ApiRequestFormat> SupportedRequestFormats { get; } = new List<ApiRequestFormat>();
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (3)
140foreach (var format in requestFormats) 417private IReadOnlyList<ApiRequestFormat> GetSupportedFormats(MediaTypeCollection contentTypes, Type type) 427var results = new List<ApiRequestFormat>();
Properties\AssemblyInfo.cs (1)
11[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiRequestFormat))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (14)
DefaultApiDescriptionProviderTest.cs (2)
1306var format = Assert.Single(description.SupportedRequestFormats); 1457var requestFormat = Assert.Single(description.SupportedRequestFormats);
EndpointMetadataApiDescriptionProviderTest.cs (12)
67var requestFormat = Assert.Single(apiDescription.SupportedRequestFormats); 93var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 97var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1114var defaultRequestFormat = requestFormats.Single(); 1146var defaultRequestFormat = requestFormats.Single(); 1178var defaultRequestFormat = requestFormats.Single(); 1206var defaultRequestFormat = requestFormats.Single(); 1235var defaultRequestFormat = requestFormats.Single(); 1264var defaultRequestFormat = requestFormats.Single(); 1277var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 1281var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1351var defaultRequestFormat = requestFormats.Single();
Microsoft.AspNetCore.OpenApi (4)
Services\OpenApiDocumentService.cs (4)
479IList<ApiRequestFormat> supportedRequestFormats, 617foreach (var requestFormat in supportedRequestFormats) 630IList<ApiRequestFormat> supportedRequestFormats, 659foreach (var requestForm in supportedRequestFormats)