6 references to Accepts
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1275
.
Accepts
(typeof(InferredJsonClass), "application/json");
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (4)
217
builder.MapPost("/", (IFormFile formFile) => { }).
Accepts
(typeof(IFormFile), "application/magic-foo-content-type");
346
builder.MapPost("/", (string name) => { }).
Accepts
(typeof(string), "application/magic-foo-content-type");
1223
builder.MapPatch("/", (JsonPatchDocument name) => { }).
Accepts
(typeof(JsonPatchDocument), "application/vnd.github.patch+json");
1349
.
Accepts
(typeof(JsonPatchDocument<JsonPatchModel>), "application/vnd.github.patch+json");
Microsoft.AspNetCore.Routing (1)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (1)
222
return
Accepts
(builder, typeof(TRequest), contentType, additionalContentTypes);