【发布时间】:2016-09-09 20:41:59
【问题描述】:
我一直在使用来自System.Web.Http.Description 命名空间的ResponseType 属性。它有助于大摇大摆地生成客户端模型。但是现在 MVC 6 中缺少这个。是否有任何其他属性取代了这个?
【问题讨论】:
标签: asp.net-web-api asp.net-core-mvc swagger swashbuckle
我一直在使用来自System.Web.Http.Description 命名空间的ResponseType 属性。它有助于大摇大摆地生成客户端模型。但是现在 MVC 6 中缺少这个。是否有任何其他属性取代了这个?
【问题讨论】:
标签: asp.net-web-api asp.net-core-mvc swagger swashbuckle
这是一篇关于 asp.net https://docs.asp.net/en/latest/tutorials/web-api-help-pages-using-swagger.html 的所有 dot net core 的精彩文章
但要让您开始尝试 ProducesResponseType 属性。
【讨论】: