Skip to content

Commit

Permalink
feat: add POST /rolePermissionsMapping for adding new rolePermissions…
Browse files Browse the repository at this point in the history
…Mapping entry #144
  • Loading branch information
duttarnab committed Jan 6, 2022
1 parent 4b2bea7 commit 932a45b
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 932a45b

Please sign in to comment.