【问题标题】:ResponseType not available in MVC 6ResponseType 在 MVC 6 中不可用
【发布时间】:2016-09-09 20:41:59
【问题描述】:

我一直在使用来自System.Web.Http.Description 命名空间的ResponseType 属性。它有助于大摇大摆地生成客户端模型。但是现在 MVC 6 中缺少这个。是否有任何其他属性取代了这个?

【问题讨论】:

    标签: asp.net-web-api asp.net-core-mvc swagger swashbuckle


    【解决方案1】:

    这是一篇关于 asp.net https://docs.asp.net/en/latest/tutorials/web-api-help-pages-using-swagger.html 的所有 dot net core 的精彩文章

    但要让您开始尝试 ProducesResponseType 属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-19
      • 2018-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多