8 references to Consumes
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
106
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)]
121
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)]
Microsoft.AspNetCore.OpenApi.Tests (6)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (4)
244
builder.MapPost("/", [
Consumes
(typeof(IFormFile), "application/magic-foo-content-type")] (IFormFile formFile) => { });
367
builder.MapPost("/", [
Consumes
(typeof(string), "application/magic-foo-content-type")] (string name) => { });
1246
builder.MapPatch("/", [
Consumes
(typeof(JsonPatchDocument), "application/vnd.github.patch+json")] (JsonPatchDocument patch) => { });
1372
builder.MapPatch("/", [
Consumes
(typeof(JsonPatchDocument<JsonPatchModel>), "application/vnd.github.patch+json")] (JsonPatchDocument<JsonPatchModel> patch) => { });
Services\OpenApiGeneratorTests.cs (2)
116
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)] () => { });
134
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)] (InferredJsonClass fromBody) => { });