nuget安装Swashbuckle包

修改SwaggerConfig文件

    //c.IncludeXmlComments(GetXmlCommentsPath());
    //设置接口描述xml路径地址
    c.IncludeXmlComments(string.Format("{0}/bin/SwaggerDemo.XML", System.AppDomain.CurrentDomain.BaseDirectory));
给接口添加注释,即可看到参数及方法描述了
 
 
 
http://www.cnblogs.com/softidea/p/5728843.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-09-30
  • 2021-06-29
  • 2022-01-18
  • 2021-09-24
猜你喜欢
  • 2021-08-01
  • 2021-08-12
  • 2021-12-27
  • 2021-06-21
  • 2022-12-23
  • 2021-10-18
  • 2022-01-30
相关资源
相似解决方案