14 references to ProducesAttribute
ApiExplorerWebSite (2)
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (2)
18
[
Produces
(typeof(Customer))]
52
[
Produces
(typeof(Customer))] // It's possible to lie about what type you return
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
ApiResponseTypeProviderTest.cs (1)
69
[
Produces
(typeof(BaseModel))]
Microsoft.AspNetCore.Mvc.Core (1)
ProducesOfTAttribute.cs (1)
17
public ProducesAttribute() :
base
(typeof(T)) { }
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApiConventionMethodAttributeTest.cs (1)
29
[
Produces
(typeof(void))]
ApiConventionTypeAttributeTest.cs (4)
17
var attribute = new
ProducesAttribute
(typeof(object));
30
[
Produces
(typeof(void))]
60
var attributes = new Attribute[] { new
ProducesAttribute
(typeof(object)), new ServiceFilterAttribute(typeof(object)), new AuthorizeAttribute() };
73
[
Produces
(typeof(void))]
ProducesAttributeTests.cs (4)
136
var producesAttribute = new
ProducesAttribute
(personType);
147
var producesAttribute = new
ProducesAttribute
(typeof(Person));
158
var producesAttribute = new
ProducesAttribute
(typeof(Person))
171
var producesAttribute = new
ProducesAttribute
(typeof(Person));
Mvc.Api.Analyzers.Test (1)
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (1)
20
[
Produces
(typeof(Person))]