65 references to SupportedResponseTypes
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
95
foreach (var response in description.
SupportedResponseTypes
)
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 (2)
DefaultApiDescriptionProvider.cs (1)
121
apiDescription.
SupportedResponseTypes
.Add(apiResponseType);
EndpointMetadataApiDescriptionProvider.cs (1)
165
AddSupportedResponseTypes(apiDescription.
SupportedResponseTypes
, methodInfo.ReturnType, routeEndpoint.Metadata);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (58)
DefaultApiDescriptionProviderTest.cs (24)
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
);
633
Assert.Empty(description.
SupportedResponseTypes
);
699
Assert.Equal(4, description.
SupportedResponseTypes
.Count);
702
description.
SupportedResponseTypes
.OrderBy(responseType => responseType.StatusCode),
809
Assert.Equal(3, description.
SupportedResponseTypes
.Count);
812
description.
SupportedResponseTypes
.OrderBy(responseType => responseType.StatusCode),
872
Assert.Equal(4, description.
SupportedResponseTypes
.Count);
875
description.
SupportedResponseTypes
.OrderBy(responseType => responseType.StatusCode),
942
Assert.Equal(4, description.
SupportedResponseTypes
.Count);
945
description.
SupportedResponseTypes
.OrderBy(responseType => responseType.StatusCode),
1012
Assert.Equal(4, description.
SupportedResponseTypes
.Count);
1015
description.
SupportedResponseTypes
.OrderBy(responseType => responseType.StatusCode),
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
);
EndpointMetadataApiDescriptionProviderTest.cs (34)
137
var responseType = Assert.Single(apiDescription.
SupportedResponseTypes
);
156
var responseType = Assert.Single(apiDescription.
SupportedResponseTypes
);
171
var responseType = Assert.Single(apiDescription.
SupportedResponseTypes
);
192
Assert.Equal(2, apiDescription.
SupportedResponseTypes
.Count);
194
var inferredResponseType = apiDescription.
SupportedResponseTypes
[0];
202
var annotatedResponseType = apiDescription.
SupportedResponseTypes
[1];
219
Assert.Equal(3, apiDescription.
SupportedResponseTypes
.Count);
221
var rdfInferredResponseType = apiDescription.
SupportedResponseTypes
[0];
230
var createdResponseType = apiDescription.
SupportedResponseTypes
[1];
239
var badRequestResponseType = apiDescription.
SupportedResponseTypes
[2];
257
Assert.Equal(2, apiDescription.
SupportedResponseTypes
.Count);
259
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
268
var badRequestResponseType = apiDescription.
SupportedResponseTypes
[1];
283
Assert.Equal(2, apiDescription.
SupportedResponseTypes
.Count);
285
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
294
var badRequestResponseType = apiDescription.
SupportedResponseTypes
[1];
308
Assert.Single(apiDescription.
SupportedResponseTypes
);
310
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
326
Assert.Single(apiDescription.
SupportedResponseTypes
);
328
var responseType = apiDescription.
SupportedResponseTypes
[0];
341
Assert.Single(apiDescription.
SupportedResponseTypes
);
343
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
362
Assert.Equal(2, apiDescription.
SupportedResponseTypes
.Count);
364
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
373
var badRequestResponseType = apiDescription.
SupportedResponseTypes
[1];
396
Assert.Equal(2, apiDescription.
SupportedResponseTypes
.Count);
398
var createdResponseType = apiDescription.
SupportedResponseTypes
[0];
407
var badRequestResponseType = apiDescription.
SupportedResponseTypes
[1];
850
Assert.Contains(apiDescription.
SupportedResponseTypes
, m => m is { StatusCode: 400, Type: { } type } && type == typeof(ProblemDetails));
851
Assert.Contains(apiDescription.
SupportedResponseTypes
, m => m is { StatusCode: 200, Type: { } type } && type == typeof(string));
875
var responseTypes = Assert.Single(apiDescription.
SupportedResponseTypes
);
927
context.Results.SelectMany(r => r.
SupportedResponseTypes
).OrderBy(r => r.StatusCode),
977
context.Results.SelectMany(r => r.
SupportedResponseTypes
).OrderBy(r => r.StatusCode),
1077
context.Results.SelectMany(r => r.
SupportedResponseTypes
).OrderBy(r => r.StatusCode),
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (2)
328
if (description.
SupportedResponseTypes
.Count == 0)
337
foreach (var responseType in description.
SupportedResponseTypes
)