Skip to content

Commit

Permalink
Automated commit 'ISCARP-15666 :- Added API Doc for approvers list en…
Browse files Browse the repository at this point in the history
…dpoint (#1933)

* Added API Doc for approvers list endpoint

* Minor Changes

* Updated tag

* Minor changes to fix errors

* Remove type attribute for testing

* Reverted the change

* Fixed formatting

* Fixed errors

* Added offset and limit params

* Added count param

* Add accessRequestId to path param

---------

Co-authored-by: Tyler Mairose <[email protected]>' by github action: 12664914232
  • Loading branch information
tyler-mairose-sp committed Jan 8, 2025
1 parent e1da218 commit d65893b
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 2 deletions.
5 changes: 3 additions & 2 deletions idn/sailpoint-api.v2024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1298,8 +1298,9 @@ paths:
/access-request-approvals/approval-summary:
$ref: ./v3/paths/access-request-approval-summary.yaml
/access-request-approvals/bulk-approve:
$ref: './v2024/paths/access-request-bulk-approve.yaml'

$ref: ./v2024/paths/access-request-bulk-approve.yaml
/access-request-approvals/{accessRequestId}/approvers:
$ref: ./v2024/paths/access-request-approvers-list.yaml
/accounts:
$ref: ./v3/paths/accounts.yaml
/accounts/{id}:
Expand Down
73 changes: 73 additions & 0 deletions idn/v2024/paths/access-request-approvers-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
get:
operationId: listAccessRequestApprovers
security:
- userAuth: [ idn:access-request-administration:read ]
x-sailpoint-userLevels:
- ORG_ADMIN
tags:
- Access Request Approvals
summary: Access Request Approvers
description: |
This API endpoint returns the list of approvers for the given access request id.
parameters:
- in: path
name: accessRequestId
description: Access Request ID.
required: true
schema:
type: string
example: 2c91808568c529c60168cca6f90c1313
- in: query
name: limit
description: Max number of results to return.
required: false
schema:
type: integer
format: int32
minimum: 0
maximum: 250
default: 250
example: 100
- in: query
name: offset
description: >-
Offset into the full result set. Usually specified with *limit* to
paginate through the results. Defaults to 0 if not specified.
required: false
schema:
type: integer
format: int32
minimum: 0
example: 10
- in: query
name: count
description: >-
If this is true, the *X-Total-Count* response header populates with the
number of results that would be returned if limit and offset were
ignored.
required: false
schema:
type: boolean
default: false
example: false
responses:
'200':
description: List of Approvers.
content:
application/json:
schema:
type: array
items:
$ref: ../schemas/AccessRequestApproversListResponse.yaml
'400':
$ref: ../../v3/responses/400.yaml
'401':
$ref: ../../v3/responses/401.yaml
'403':
$ref: ../../v3/responses/403.yaml
'404':
$ref: ../../v3/responses/404.yaml
'429':
$ref: ../../v3/responses/429.yaml
'500':
$ref: ../../v3/responses/500.yaml
22 changes: 22 additions & 0 deletions idn/v2024/schemas/AccessRequestApproversListResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
id:
type: string
description: Approver id.
example: id12345
email:
type: string
description: Email of the approver.
example: [email protected]
name:
type: string
description: Name of the approver.
example: John Doe
approvalId:
type: string
description: Id of the approval item.
example: ap12345
type:
type: string
description: Type of the object returned. In this case, the value for this field will always Identity.
example: Identity

0 comments on commit d65893b

Please sign in to comment.