11 references to Produces
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
EndpointMetadataApiDescriptionProviderTest.cs (6)
860
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().WithGroupName(endpointGroupName);
885
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().ExcludeFromDescription();
908
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
960
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
961
.
Produces
<InferredJsonClass>(StatusCodes.Status201Created);
1061
.
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 (3)
Program.cs (3)
90
.
Produces
<Todo>(additionalContentTypes: "text/xml");
93
.
Produces
<Todo>(contentType: "text/xml");
104
.
Produces
<Triangle>(200, "text/xml");