Aspnetcore.docs: Document usage of ProducesResponseTypeAttribute

Created on 4 Dec 2018  Â·  3Comments  Â·  Source: dotnet/AspNetCore.Docs

See #6440

@Rick-Anderson edit: 25.4 K PV - 70% CSAT
comments:

Obsolete UseSwaggerUI.
None of the steps are up to date.
the code example does not seem to be working..
o basic info on what swagger actually is and does.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P2 Source - Docs.ms

Most helpful comment

I have just tried the steps above, and it works fine.

All 3 comments

I have just tried the steps above, and it works fine.

True, works for me as well... Though keep in mind that article was updated on 04/04/2019.

@Rick-Anderson - it is noted now

In ASP.NET Core 2.2 or later, conventions can be used as an alternative to explicitly decorating individual actions with [ProducesResponseType]. For more information, see [Use web API conventions.](https://docs.microsoft.com/en-us/aspnet/core/web-api/advanced/conventions?view=aspnetcore-2.2)

Close?

Was this page helpful?
0 / 5 - 0 ratings