Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ResponseType not available in MVC 6

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?

like image 800
user2448338 Avatar asked Sep 09 '16 20:09

user2448338


1 Answers

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.

like image 144
jimpaine Avatar answered Sep 29 '22 11:09

jimpaine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!