30 references to SupportedRequestFormats
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
86
foreach (var request in description.
SupportedRequestFormats
)
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
76
apiDescription.
SupportedRequestFormats
.Add(new ApiRequestFormat { MediaType = "application/json" });
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (2)
142
apiDescription.
SupportedRequestFormats
.Add(format);
150
apiDescription.
SupportedRequestFormats
.Add(new ApiRequestFormat
EndpointMetadataApiDescriptionProvider.cs (1)
154
var supportedRequestFormats = apiDescription.
SupportedRequestFormats
;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (23)
DefaultApiDescriptionProviderTest.cs (6)
1219
Assert.Empty(description.
SupportedRequestFormats
);
1234
description.
SupportedRequestFormats
.OrderBy(f => f.MediaType.ToString()),
1258
description.
SupportedRequestFormats
.OrderBy(f => f.MediaType.ToString()),
1276
description.
SupportedRequestFormats
.OrderBy(f => f.MediaType.ToString()),
1306
var format = Assert.Single(description.
SupportedRequestFormats
);
1457
var requestFormat = Assert.Single(description.
SupportedRequestFormats
);
EndpointMetadataApiDescriptionProviderTest.cs (17)
67
var requestFormat = Assert.Single(apiDescription.
SupportedRequestFormats
);
91
Assert.Equal(2, apiDescription.
SupportedRequestFormats
.Count);
93
var requestFormat0 = apiDescription.
SupportedRequestFormats
[0];
97
var requestFormat1 = apiDescription.
SupportedRequestFormats
[1];
110
Assert.Equal(2, apiDescription.
SupportedRequestFormats
.Count);
125
Assert.Equal(2, apiDescription.
SupportedRequestFormats
.Count);
1014
context.Results.SelectMany(r => r.
SupportedRequestFormats
),
1113
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1145
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1177
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1205
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1234
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1263
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
1275
Assert.Equal(2, apiDescription.
SupportedRequestFormats
.Count);
1277
var requestFormat0 = apiDescription.
SupportedRequestFormats
[0];
1281
var requestFormat1 = apiDescription.
SupportedRequestFormats
[1];
1350
var requestFormats = context.Results.SelectMany(r => r.
SupportedRequestFormats
);
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (2)
465
return await GetJsonRequestBody(description.
SupportedRequestFormats
, bodyParameter, scopedServiceProvider, schemaTransformers, cancellationToken);
473
return await GetFormRequestBody(description.
SupportedRequestFormats
, formParameters, endpointMetadata, scopedServiceProvider, schemaTransformers, cancellationToken);