-
Notifications
You must be signed in to change notification settings - Fork 105
add swagger api #265
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
add swagger api #265
Conversation
为Helm仓库相关的路由方法添加Swagger注释,包括列表查询、保存、删除和更新索引等接口
为参数管理、用户管理、Helm管理等多个控制器添加Swagger API文档注释,包括接口描述、参数定义和返回格式 统一调整部分接口路由路径,如将/admin/cluster改为/mgm/cluster 补充登录、2FA、API密钥等功能的接口文档说明
新增Helm仓库管理、自定义模板CRUD、用户2FA和API密钥管理等接口定义 移除旧的集群连接和SSO相关接口,统一到新的管理路径下
在Token描述中添加获取路径说明,明确提示用户可在个人中心-API密钥菜单下申请Token
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
Walkthrough本次变更主要为后端各控制器方法和部分主入口文件添加或完善了 Swagger 风格的 API 文档注释,调整了部分接口的路由路径和描述信息,并在前端侧菜单中新增了“开放API”入口。所有变更均未涉及实际业务逻辑,仅限于文档和元数据完善。 Changes
Sequence Diagram(s)sequenceDiagram
participant 用户
participant 前端
participant Swagger UI
participant 后端API
用户->>前端: 打开侧边栏,点击“开放API”
前端->>Swagger UI: 跳转至 /swagger/index.html
用户->>Swagger UI: 浏览API文档
Swagger UI->>后端API: 通过注释生成的元数据展示接口信息
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (19)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.