I've been using ResponseType
attribute from System.Web.Http.Description
namespace. It helps swagger to generate the client side models. But this is now missing from MVC 6. Is there any other attribute which has replaced this?
Here's a great article about everything dot net core for asp.net https://docs.asp.net/en/latest/tutorials/web-api-help-pages-using-swagger.html
But to get you started try the ProducesResponseType attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With