7 instantiations of ApiResponseType
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
80apiDescription.SupportedResponseTypes.Add(new ApiResponseType 86apiDescription.SupportedResponseTypes.Add(new ApiResponseType
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (3)
109responseTypes.Add(StatusCodes.Status200OK, new ApiResponseType 171var apiResponseType = new ApiResponseType 243var apiResponseType = new ApiResponseType
EndpointMetadataApiDescriptionProvider.cs (1)
402var apiResponseType = new ApiResponseType
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
51private static readonly ApiResponseType _defaultApiResponseType = new() { StatusCode = StatusCodes.Status200OK };
60 references to ApiResponseType
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
95foreach (var response in description.SupportedResponseTypes)
Microsoft.AspNetCore.Mvc.Abstractions (3)
ApiExplorer\ApiDescription.cs (2)
60public IList<ApiResponseType> SupportedResponseTypes { get; } = new List<ApiResponseType>();
ApiExplorer\ApiResponseFormat.cs (1)
9/// Possible format for an <see cref="ApiResponseType"/>.
Microsoft.AspNetCore.Mvc.ApiExplorer (17)
ApiResponseTypeProvider.cs (10)
30public ICollection<ApiResponseType> GetApiResponseTypes(ControllerActionDescriptor action) 75private ICollection<ApiResponseType> GetApiResponseTypes( 126foreach (var apiResponse in responseTypes.Values) 135internal static Dictionary<int, ApiResponseType> ReadResponseMetadata( 145var results = new Dictionary<int, ApiResponseType>(); 171var apiResponseType = new ApiResponseType 224internal static Dictionary<int, ApiResponseType> ReadResponseMetadata( 230var results = new Dictionary<int, ApiResponseType>(); 243var apiResponseType = new ApiResponseType 280internal static void CalculateResponseFormatForType(ApiResponseType apiResponse, MediaTypeCollection declaredContentTypes, IEnumerable<IApiResponseTypeMetadataProvider>? responseTypeMetadataProviders, IModelMetadataProvider? modelMetadataProvider)
DefaultApiDescriptionProvider.cs (1)
119foreach (var apiResponseType in apiResponseTypes)
EndpointMetadataApiDescriptionProvider.cs (5)
321IList<ApiResponseType> supportedResponseTypes, 353foreach (var apiResponseType in responseMetadataTypes) 387var defaultApiResponseType = CreateDefaultApiResponseType(responseType); 400private static ApiResponseType CreateDefaultApiResponseType(Type responseType) 402var apiResponseType = new ApiResponseType
Properties\AssemblyInfo.cs (1)
13[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiResponseType))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (36)
ApiResponseTypeProviderTest.cs (1)
777private static IEnumerable<string> GetSortedMediaTypes(ApiResponseType apiResponseType)
DefaultApiDescriptionProviderTest.cs (14)
499var responseType = Assert.Single(description.SupportedResponseTypes); 517var responseType = Assert.Single(description.SupportedResponseTypes); 536var responseType = Assert.Single(description.SupportedResponseTypes); 558var responseType = Assert.Single(description.SupportedResponseTypes); 576var responseType = Assert.Single(description.SupportedResponseTypes); 592var responseType = Assert.Single(description.SupportedResponseTypes); 608var responseType = Assert.Single(description.SupportedResponseTypes); 1060var responseType = Assert.Single(description.SupportedResponseTypes); 1085var responseType = Assert.Single(description.SupportedResponseTypes); 1124var responseTypes = Assert.Single(description.SupportedResponseTypes); 1148var responseType = Assert.Single(description.SupportedResponseTypes); 1168var responseType = Assert.Single(description.SupportedResponseTypes); 1200var responseType = Assert.Single(description.SupportedResponseTypes); 2345private IEnumerable<string> GetSortedMediaTypes(ApiResponseType apiResponseType)
EndpointMetadataApiDescriptionProviderTest.cs (21)
137var responseType = Assert.Single(apiDescription.SupportedResponseTypes); 156var responseType = Assert.Single(apiDescription.SupportedResponseTypes); 171var responseType = Assert.Single(apiDescription.SupportedResponseTypes); 194var inferredResponseType = apiDescription.SupportedResponseTypes[0]; 202var annotatedResponseType = apiDescription.SupportedResponseTypes[1]; 221var rdfInferredResponseType = apiDescription.SupportedResponseTypes[0]; 230var createdResponseType = apiDescription.SupportedResponseTypes[1]; 239var badRequestResponseType = apiDescription.SupportedResponseTypes[2]; 259var createdResponseType = apiDescription.SupportedResponseTypes[0]; 268var badRequestResponseType = apiDescription.SupportedResponseTypes[1]; 285var createdResponseType = apiDescription.SupportedResponseTypes[0]; 294var badRequestResponseType = apiDescription.SupportedResponseTypes[1]; 310var createdResponseType = apiDescription.SupportedResponseTypes[0]; 328var responseType = apiDescription.SupportedResponseTypes[0]; 343var createdResponseType = apiDescription.SupportedResponseTypes[0]; 364var createdResponseType = apiDescription.SupportedResponseTypes[0]; 373var badRequestResponseType = apiDescription.SupportedResponseTypes[1]; 398var createdResponseType = apiDescription.SupportedResponseTypes[0]; 407var badRequestResponseType = apiDescription.SupportedResponseTypes[1]; 875var responseTypes = Assert.Single(apiDescription.SupportedResponseTypes); 1516private static IEnumerable<string> GetSortedMediaTypes(ApiResponseType apiResponseType)
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiDocumentService.cs (3)
51private static readonly ApiResponseType _defaultApiResponseType = new() { StatusCode = StatusCodes.Status200OK }; 337foreach (var responseType in description.SupportedResponseTypes) 354ApiResponseType apiResponseType,