Skip to content

Commit

Permalink
Automated commit 'Merge pull request #40 from sailpoint/NEROCKET-1061
Browse files Browse the repository at this point in the history
NEROCKET-1061 added endpoints for POST system role permissions.' by github action: 10837427406
  • Loading branch information
developer-relations-sp committed Sep 12, 2024
1 parent e3cf15a commit 148fa36
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nerm/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ paths:
# System Roles
/system_roles:
$ref: "./paths/system_roles.yaml"
# System Role Permissions
/system_role_permissions:
$ref: "./paths/system_role_permissions.yaml"
# Permissions
/permissions:
$ref: "./paths/permissions.yaml"
Expand Down
15 changes: 15 additions & 0 deletions nerm/paths/system_role_permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
post:
summary: Create a system role permission
description: This endpoint can create system role permissions for Lifecycle System Roles
operationId: createSystemRolePermission
tags:
- system role permissions
requestBody:
$ref: "../requestBodies/POST/SystemRolePermissions.yaml"
responses:
'200':
$ref: "../responses/SystemRolePermission.yaml"
'400':
$ref: "../responses/400.yaml"
'500':
$ref: "../responses/500.yaml"
9 changes: 9 additions & 0 deletions nerm/requestBodies/POST/SystemRolePermissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
required: true
content:
application/json:
schema:
type: object
properties:
system_role_permission:
type: object
$ref: "../../schemas/POST/SystemRolePermission.yaml"
9 changes: 9 additions & 0 deletions nerm/responses/SystemRolePermission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Expected response to a valid request
content:
application/json:
schema:
type: object
properties:
system_role_permission:
type: object
$ref: '../schemas/GET/SystemRolePermission.yaml'
28 changes: 28 additions & 0 deletions nerm/schemas/GET/SystemRolePermission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: The id of the system role permission
example: 2e06b876-f456-473d-bd65-b6435e0b6b2d
system_role_id:
type: string
format: uuid
description: The id of the system role
example: ef5d413f-ba18-49e6-9a72-bb115aa133ff
value:
type: integer
format: int32
example: 1
description: The permissions level of access
subject:
type: integer
format: int32
example: 1
description: The type of permission
subject_id:
type: string
format: uuid
example: db3d85ef-c324-458b-b206-58debaa96419
description: The ID of the object that the permission is giving access to
24 changes: 24 additions & 0 deletions nerm/schemas/POST/SystemRolePermission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
type: object
properties:
system_role_id:
type: string
format: uuid
description: The id of the system role
example: ef5d413f-ba18-49e6-9a72-bb115aa133ff
subject_id:
type: string
format: uuid
example: db3d85ef-c324-458b-b206-58debaa96419
description: The ID of the object that the permission is giving access to
value:
type: integer
format: int32
enum: [1, 2, 3, 4, 5, 6, 7]
example: 1
description: The permissions level of access
subject:
type: integer
format: int32
enum: [0, 2, 14]
example: 0
description: The type of permission

0 comments on commit 148fa36

Please sign in to comment.