一、Swagger配置
1、注解不显示
SwaggerConfig文件下
//c.IncludeXmlComments(GetXmlCommentsPath()); 内下面添加:
c.IncludeXmlComments(Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,@"bin\YDShengya_WebApi.xml"));
2、使用Swagger 让某些接口不显示在文档
在Action 上加[ApiExplorerSettings(IgnoreApi = true)]
[HttpGet] [ApiExplorerSettings(IgnoreApi = true)] public ActionResult Index(string appKey,string username ) { //todo }
3、