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