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 452results.Add(new ApiRequestFormat()
EndpointMetadataApiDescriptionProvider.cs (1)
158supportedRequestFormats.Add(new ApiRequestFormat
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiDocumentService.cs (3)
532supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/x-www-form-urlencoded" }]; 685supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/octet-stream" }]; 691supportedRequestFormats = [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) 429private IReadOnlyList<ApiRequestFormat> GetSupportedFormats(MediaTypeCollection contentTypes, Type type) 439var 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)
1336var format = Assert.Single(description.SupportedRequestFormats); 1487var requestFormat = Assert.Single(description.SupportedRequestFormats);
EndpointMetadataApiDescriptionProviderTest.cs (12)
67var requestFormat = Assert.Single(apiDescription.SupportedRequestFormats); 93var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 97var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1227var defaultRequestFormat = requestFormats.Single(); 1259var defaultRequestFormat = requestFormats.Single(); 1291var defaultRequestFormat = requestFormats.Single(); 1319var defaultRequestFormat = requestFormats.Single(); 1348var defaultRequestFormat = requestFormats.Single(); 1377var defaultRequestFormat = requestFormats.Single(); 1390var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 1394var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1464var defaultRequestFormat = requestFormats.Single();
Microsoft.AspNetCore.OpenApi (4)
Services\OpenApiDocumentService.cs (4)
521IList<ApiRequestFormat> supportedRequestFormats, 659foreach (var requestFormat in supportedRequestFormats) 673IList<ApiRequestFormat> supportedRequestFormats, 702foreach (var requestForm in supportedRequestFormats)