10 references to Produces
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
EndpointMetadataApiDescriptionProviderTest.cs (6)
692
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().WithGroupName(endpointGroupName);
717
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().ExcludeFromDescription();
740
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
792
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
793
.
Produces
<InferredJsonClass>(StatusCodes.Status201Created);
893
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK);
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
133
myGroup.MapDelete("/a", GetString).
Produces
<string>(201);
Microsoft.AspNetCore.Routing.Tests (1)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
49
builder.
Produces
<TestEndointConventionBuilder>();
Sample (2)
Program.cs (2)
79
.
Produces
<Todo>(additionalContentTypes: "text/xml");
82
.
Produces
<Todo>(contentType: "text/xml");