4 references to Accepts
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1032
.
Accepts
(typeof(InferredJsonClass), "application/json");
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (2)
213
builder.MapPost("/", (IFormFile formFile) => { }).
Accepts
(typeof(IFormFile), "application/magic-foo-content-type");
342
builder.MapPost("/", (string name) => { }).
Accepts
(typeof(string), "application/magic-foo-content-type");
Microsoft.AspNetCore.Routing (1)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (1)
222
return
Accepts
(builder, typeof(TRequest), contentType, additionalContentTypes);