6 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 (4)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (2)
240
builder.MapPost("/", [
Consumes
(typeof(IFormFile), "application/magic-foo-content-type")] (IFormFile formFile) => { });
363
builder.MapPost("/", [
Consumes
(typeof(string), "application/magic-foo-content-type")] (string name) => { });
Services\OpenApiGeneratorTests.cs (2)
115
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = true)] () => { });
132
[
Consumes
(typeof(InferredJsonClass), "application/custom0", "application/custom1", IsOptional = false)] (InferredJsonClass fromBody) => { });