8 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 (4)
Services\OpenApiDocumentService.cs (4)
557supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/x-www-form-urlencoded" }]; 721supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/octet-stream" }]; 727supportedRequestFormats = [new ApiRequestFormat { MediaType = "application/json-patch+json" }]; 733supportedRequestFormats = [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)
1335var format = Assert.Single(description.SupportedRequestFormats); 1486var requestFormat = Assert.Single(description.SupportedRequestFormats);
EndpointMetadataApiDescriptionProviderTest.cs (12)
67var requestFormat = Assert.Single(apiDescription.SupportedRequestFormats); 93var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 97var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1331var defaultRequestFormat = requestFormats.Single(); 1363var defaultRequestFormat = requestFormats.Single(); 1395var defaultRequestFormat = requestFormats.Single(); 1423var defaultRequestFormat = requestFormats.Single(); 1452var defaultRequestFormat = requestFormats.Single(); 1481var defaultRequestFormat = requestFormats.Single(); 1494var requestFormat0 = apiDescription.SupportedRequestFormats[0]; 1498var requestFormat1 = apiDescription.SupportedRequestFormats[1]; 1568var defaultRequestFormat = requestFormats.Single();
Microsoft.AspNetCore.OpenApi (4)
Services\OpenApiDocumentService.cs (4)
546IList<ApiRequestFormat> supportedRequestFormats, 695foreach (var requestFormat in supportedRequestFormats) 709IList<ApiRequestFormat> supportedRequestFormats, 744foreach (var requestFormat in supportedRequestFormats)