我一直在使用ResponseType
命名空间中的System.Web.Http.Description
属性。它有助于生成客户端模型。但是现在MVC 6中缺少这个。还有其他属性替换了吗?
答案 0 :(得分:3)
这是一篇关于asp.net https://docs.asp.net/en/latest/tutorials/web-api-help-pages-using-swagger.html
的所有dot net core的精彩文章但是为了让你开始尝试ProducesResponseType属性。