16 references to Produces
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
EndpointMetadataApiDescriptionProviderTest.cs (6)
1104
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().WithGroupName(endpointGroupName);
1129
builder.MapGet("/api/todos", () => "").
Produces
<InferredJsonClass>().ExcludeFromDescription();
1152
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
1204
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK)
1205
.
Produces
<InferredJsonClass>(StatusCodes.Status201Created);
1305
.
Produces
<InferredJsonClass>(StatusCodes.Status200OK);
Microsoft.AspNetCore.OpenApi.Tests (5)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
134
myGroup.MapDelete("/a", GetString).
Produces
<string>(201);
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (4)
1044
.
Produces
<FileContentResult>(contentType: MediaTypeNames.Application.Octet);
1067
.
Produces
<FileStreamResult>(contentType: MediaTypeNames.Application.Octet);
1090
.
Produces
<FileContentHttpResult>(contentType: MediaTypeNames.Image.Png);
1113
.
Produces
<FileStreamHttpResult>(contentType: MediaTypeNames.Application.Pdf);
Microsoft.AspNetCore.Routing.Tests (1)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
49
builder.
Produces
<TestEndointConventionBuilder>();
Sample (4)
Endpoints\MapResponsesEndpoints.cs (2)
12
.
Produces
<Todo>(additionalContentTypes: "text/xml");
15
.
Produces
<Todo>(contentType: "text/xml");
Endpoints\MapSchemasEndpoints.cs (2)
22
.
Produces
<Triangle>(200, "text/xml");
43
.
Produces
<CustomIResultImplementor>(200);