-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated commit 'Merge pull request #40 from sailpoint/NEROCKET-1061
NEROCKET-1061 added endpoints for POST system role permissions.' by github action: 10837427406
- Loading branch information
1 parent
e3cf15a
commit 148fa36
Showing
6 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |