Skip to content

Commit

Permalink
feat: 新增的超管类接口对接apigateway #2648 (#2649)
Browse files Browse the repository at this point in the history
  • Loading branch information
Canway-shiisa authored May 10, 2024
1 parent 989d0d1 commit c42cf08
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 1 deletion.
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:

0 comments on commit c42cf08

Please sign in to comment.