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

feat: 新增的超管类接口对接apigateway #2648 #2649

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion saas/backend/api/admin/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# 用户组基本信息更新 & 删除
path(
"groups/<int:id>/",
views.AdminGroupInfoViewSet.as_view({"get": "update", "delete": "destroy"}),
views.AdminGroupInfoViewSet.as_view({"put": "update", "delete": "destroy"}),
name="open.admin.group",
),
# 用户组成员
Expand Down
155 changes: 155 additions & 0 deletions saas/resources/apigateway/bk_apigw_resources_bk-iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3103,3 +3103,158 @@ paths:
resourcePermissionRequired: false
disabledStages: []
descriptionEn:
/api/v1/open/admin/groups/:
post:
operationId: admin_create_groups
description: 超管批量创建用户组
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: post
path: /api/v1/open/admin/groups/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
/api/v1/open/admin/groups/{id}/:
delete:
operationId: admin_delete_group
description: 超管删除指定用户组
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: delete
path: /api/v1/open/admin/groups/{id}/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
put:
operationId: admin_update_group
description: 超管更新指定用户组
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: put
path: /api/v1/open/admin/groups/{id}/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
/api/v1/open/admin/groups/{id}/policies/:
post:
operationId: admin_groups_policies_grant
description: 超管授权用户组
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: post
path: /api/v1/open/admin/groups/{id}/policies/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
/api/v1/open/admin/systems/{system_id}/provider_config/:
get:
operationId: admin_list_provider_config
description: 系统回调信息查询
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: get
path: /api/v1/open/admin/systems/{system_id}/provider_config/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
/api/v1/open/admin/templates/:
post:
operationId: admin_create_templates
description: 超管创建模板
tags:
- open
responses:
default:
description: ''
x-bk-apigateway-resource:
isPublic: true
allowApplyPermission: true
matchSubpath: false
backend:
type: HTTP
method: post
path: /api/v1/open/admin/templates/
matchSubpath: false
timeout: 0
upstreams: { }
transformHeaders: { }
authConfig:
userVerifiedRequired: false
resourcePermissionRequired: false
disabledStages: [ ]
descriptionEn:
Loading