Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger支持分组,隐藏API #147

Closed
gmf520 opened this issue Mar 31, 2020 · 0 comments
Closed

Swagger支持分组,隐藏API #147

gmf520 opened this issue Mar 31, 2020 · 0 comments
Labels
Breaked Changes ⚡ 更新有破坏性,对现有业务实现有较大影响 Feature 🔨 新功能,新特性 Finished ✔️ 实现并完工
Milestone

Comments

@gmf520
Copy link
Member

gmf520 commented Mar 31, 2020

您的功能请求与现有问题有关吗?请描述

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Swagger支持分组,隐藏API

受到的影响

Swagger相关配置结构变更,添加多个Endpoints支持,添加RoutePrefix支持
旧的配置:

"Swagger": {
  "Title": "OSharp API",
  "Version": 1,
  "Url": "/swagger/v1/swagger.json",
  "MiniProfiler": true,
  "Enabled": true
}

新的配置:

"Swagger": {
  "Endpoints": [
    {
      "Title": "框架API",
      "Version": "v1",
      "Url": "/swagger/v1/swagger.json"
    },
    {
      "Title": "业务API",
      "Version": "buss",
      "Url": "/swagger/buss/swagger.json"
    }
  ],
 "RoutePrefix": "swagger",
  "MiniProfiler": true,
  "Enabled": true
}
@gmf520 gmf520 added the Feature 🔨 新功能,新特性 label Mar 31, 2020
@gmf520 gmf520 added this to the v3.1.3 milestone Mar 31, 2020
@gmf520 gmf520 added Breaked Changes ⚡ 更新有破坏性,对现有业务实现有较大影响 Finished ✔️ 实现并完工 labels Apr 2, 2020
@gmf520 gmf520 closed this as completed Apr 2, 2020
@gmf520 gmf520 modified the milestones: v3.1.3, vNext Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaked Changes ⚡ 更新有破坏性,对现有业务实现有较大影响 Feature 🔨 新功能,新特性 Finished ✔️ 实现并完工
Projects
None yet
Development

No branches or pull requests

1 participant