5 references to ProducesResponseTypeAttribute
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
ApiResponseTypeProviderTest.cs (2)
714
actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new
ProducesResponseTypeAttribute
(typeof(ValidationProblemDetails), 400, "application/problem+json"), FilterScope.Action));
715
actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new
ProducesResponseTypeAttribute
(typeof(ProblemDetails), 404, "application/problem+json"), FilterScope.Action));
Microsoft.AspNetCore.Mvc.Core (1)
ProducesResponseTypeOfTAttribute.cs (1)
23
:
base
(typeof(T), statusCode, contentType, additionalContentTypes) { }
Microsoft.AspNetCore.Mvc.Core.Test (2)
ProducesResponseTypeAttributeTests.cs (2)
17
var producesContentAttribute = new
ProducesResponseTypeAttribute
(typeof(void), StatusCodes.Status200OK, "application/json", "text/json;charset=utf-8");
42
() => new
ProducesResponseTypeAttribute
(typeof(void), StatusCodes.Status200OK, contentTypes[0], contentTypes.Skip(1).ToArray()));