摘要: Swagger的API默认排序往往达不到效果,甚至设置了Action排序也没有作用。这里直接给出代码,关键在于 IDocumentFilter 实现。 注意 DocumentFilter 注册要放在尾部,否则获取不到分组Tag信息 services.AddSwaggerGen(); services 阅读全文
posted @ 2024-01-15 16:20 超软毛毛虫 阅读(120) 评论(0) 推荐(0) 编辑