From 932a45bc4c34235dad5c5813a10f157b0350966b Mon Sep 17 00:00:00 2001 From: Arnab Dutta Date: Thu, 6 Jan 2022 22:53:03 +0530 Subject: [PATCH] feat: add POST /rolePermissionsMapping for adding new rolePermissionsMapping entry #144 --- docs/jans-config-api-swagger.yaml | 34 +++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/jans-config-api-swagger.yaml b/docs/jans-config-api-swagger.yaml index 84154e60c1a..c07f96a42e7 100644 --- a/docs/jans-config-api-swagger.yaml +++ b/docs/jans-config-api-swagger.yaml @@ -3066,7 +3066,7 @@ paths: description: Get admin ui role-permissions mapping. operationId: get-adminui-role-permissions security: - - oauth2: [https://jans.io/oauth/jans-auth-server/config/adminui/user/rolePermissionMapping.read] + - oauth2: [https://jans.io/oauth/jans-auth-server/config/adminui/user/rolePermissionMapping.readonly] responses: '200': description: OK @@ -3084,6 +3084,36 @@ paths: $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalServerError' + post: + tags: + - Admin UI - Role-Permissions Mapping + summary: Add role-permissions mapping. + description: Add role-permissions mapping. + operationId: Add role-permissions mapping. + security: + - oauth2: [https://jans.io/oauth/jans-auth-server/config/adminui/user/rolePermissionMapping.write] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RolePermissionMapping' + responses: + '200': + description: OK + content: + application/json: + schema: + title: Add role-permissions mapping. + description: Add role-permissions mapping. + type: array + items: + $ref: '#/components/schemas/RolePermissionMapping' + '400': + $ref: '#/components/responses/NotAcceptable' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' put: tags: - Admin UI - Role-Permissions Mapping @@ -3152,7 +3182,7 @@ paths: description: Get admin ui license details. operationId: get-adminui-license security: - - oauth2: [https://jans.io/oauth/jans-auth-server/config/adminui/license.read] + - oauth2: [https://jans.io/oauth/jans-auth-server/config/adminui/license.readonly] responses: '200': description: OK