mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
feat: 添加Swagger文档使用说明,更新开发规范中的Swagger约束
This commit is contained in:
@@ -296,13 +296,13 @@ V3 新增行为:
|
||||
|
||||
更新顺序:
|
||||
|
||||
1. `docs/design.md`
|
||||
2. `docs/development-guidelines.md`
|
||||
3. `docs/development-plan.md`
|
||||
4. `docs/deployment.md`
|
||||
|
||||
## 12. Swagger 鏂囨。绾︽潫
|
||||
|
||||
* Server 鎻愪緵 Swagger UI 鍏ュ彛锛?`/swagger/index.html`
|
||||
* Swagger UI 浠呭宸茬櫥褰曠殑绠$悊绔敤鎴峰紑鏀撅紝涓嶅悜鍖垮悕鐢ㄦ埛鍏紑
|
||||
* 鏂板鎴栦慨鏀?API 鏃讹紝闇€鍚屾鏇存柊 Swag 娉ㄨВ骞堕噸鏂扮敓鎴?`atsf_server/docs`
|
||||
1. `docs/design.md`
|
||||
2. `docs/development-guidelines.md`
|
||||
3. `docs/development-plan.md`
|
||||
4. `docs/deployment.md`
|
||||
|
||||
## 12. Swagger 文档约束
|
||||
|
||||
* Server 提供 Swagger UI 入口:`/swagger/index.html`
|
||||
* Swagger UI 仅对已登录的管理端用户开放,不向匿名用户公开
|
||||
* 新增或修改 API 时,必须同步更新 Swag 注解并重新生成 `atsf_server/docs`
|
||||
|
||||
Reference in New Issue
Block a user