user2448338
user2448338

Reputation: 73

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?

Upvotes: 6

Views: 5076

Answers (1)

jimpaine
jimpaine

Reputation: 887

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.

Upvotes: 4

Related Questions