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)
213builder.MapPost("/", (IFormFile formFile) => { }).Accepts(typeof(IFormFile), "application/magic-foo-content-type"); 342builder.MapPost("/", (string name) => { }).Accepts(typeof(string), "application/magic-foo-content-type");
Microsoft.AspNetCore.Routing (1)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (1)
222return Accepts(builder, typeof(TRequest), contentType, additionalContentTypes);