11 2020 档案
摘要:两种方式配置分别如下:修改SwaggerConfig.cs 1. 直接在SwaggerConfig中设置请求头,这里请求头用的默认值apiKey,也可以自己定义一个 public class SwaggerConfig { public static void Register() { var th
阅读全文
摘要:设置让控制器上的注释显示 1.定义一个provider实现ISwaggerProvider接口 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Swashbuckle
阅读全文