Implemented interface member:
property
Type
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.Type
10 writes to Type
ApiExplorerWebSite (6)
Controllers\ApiExplorerApiController.cs (1)
32
[Produces("application/pdf",
Type
= typeof(Stream))]
Controllers\ApiExplorerResponseTypeOverrideOnActionController.cs (1)
8
[Produces("application/json",
Type
= typeof(Product))]
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (4)
24
[Produces("application/json",
Type
= typeof(Product))]
31
[Produces("application/json",
Type
= typeof(string))]
45
[Produces("application/json",
Type
= typeof(int))]
80
[Produces("text/xml",
Type
= typeof(Product))] // Has status code as 200
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
ApiResponseTypeProviderTest.cs (2)
620
actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new ProducesAttribute("application/json") {
Type
= typeof(string) }, FilterScope.Controller));
713
actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new ProducesAttribute("text/xml") {
Type
= typeof(BaseModel) }, FilterScope.Action));
DefaultApiDescriptionProviderTest.cs (1)
643
new ProducesAttribute("text/json", "application/json") {
Type
= typeof(Customer) },
Microsoft.AspNetCore.Mvc.Core (1)
ProducesAttribute.cs (1)
27
Type
= type ?? throw new ArgumentNullException(nameof(type));
4 references to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
406
if (provider is ProducesAttribute producesAttribute && producesAttribute.
Type
is null)
Microsoft.AspNetCore.Mvc.Core (1)
ProducesAttribute.cs (1)
24
/// <param name="type">The <see cref="
Type
"/> of object that is going to be written in the response.</param>
Microsoft.AspNetCore.Mvc.Core.Test (2)
ProducesAttributeTests.cs (2)
139
Assert.NotNull(producesAttribute.
Type
);
140
Assert.Same(personType, producesAttribute.
Type
);