11 references to Produces
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
EndpointMetadataApiDescriptionProviderTest.cs (6)
973
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().WithGroupName(endpointGroupName);
998
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().ExcludeFromDescription();
1021
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
1073
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
1074
.
Produces
<InferredJsonClass>(StatusCodes.Status201Created);
1174
.
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)
Endpoints\MapResponsesEndpoints.cs (2)
12
.
Produces
<Todo>(additionalContentTypes: "text/xml");
15
.
Produces
<Todo>(contentType: "text/xml");
Endpoints\MapSchemasEndpoints.cs (1)
21
.
Produces
<Triangle>(200, "text/xml");