7 instantiations of ApiResponseFormat
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
82ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } }, 88ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } },
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
ApiResponseTypeProvider.cs (2)
327apiResponse.ApiResponseFormats.Add(new ApiResponseFormat 339apiResponse.ApiResponseFormats.Add(new ApiResponseFormat
EndpointMetadataApiDescriptionProvider.cs (3)
427return new ApiResponseFormat { MediaType = "text/plain" }; 432return new ApiResponseFormat { MediaType = "application/json" }; 456apiResponseFormats.Add(new ApiResponseFormat
19 references to ApiResponseFormat
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
104foreach (var responseFormat in response.ApiResponseFormats)
Microsoft.AspNetCore.Mvc.Abstractions (2)
ApiExplorer\ApiResponseType.cs (2)
16public IList<ApiResponseFormat> ApiResponseFormats { get; set; } = new List<ApiResponseFormat>();
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
EndpointMetadataApiDescriptionProvider.cs (2)
417private static ApiResponseFormat? CreateDefaultApiResponseFormat(Type responseType) 452private static void AddResponseContentTypes(IList<ApiResponseFormat> apiResponseFormats, IReadOnlyList<string> contentTypes)
Properties\AssemblyInfo.cs (1)
12[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiResponseFormat))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (13)
DefaultApiDescriptionProviderTest.cs (2)
1130foreach (var responseFormat in responseTypes.ApiResponseFormats) 1203var apiResponseFormat = Assert.Single(
EndpointMetadataApiDescriptionProviderTest.cs (11)
142var responseFormat = Assert.Single(responseType.ApiResponseFormats); 161var responseFormat = Assert.Single(responseType.ApiResponseFormats); 227var rdfInferredResponseFormat = Assert.Single(rdfInferredResponseType.ApiResponseFormats); 236var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 245var badRequestResponseFormat = Assert.Single(badRequestResponseType.ApiResponseFormats); 265var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 291var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 316var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 349var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 370var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats); 404var createdResponseFormat = Assert.Single(createdResponseType.ApiResponseFormats);