Skip to content

Commit f1edf4d

Browse files
Automated commit 'Merge pull request #37 from sailpoint/NERRA-1555
NERRA-1555: document after_id usage for Profiles GET' by github action: 10688263706
1 parent da38b2d commit f1edf4d

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

nerm/parameters/_index.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ workflow_session_id:
5757
result:
5858
$ref: './query/result.yaml'
5959
metadata:
60-
$ref: './query/metadata.yaml'
60+
$ref: './query/metadata.yaml'
61+
after_id:
62+
$ref: './query/after_id.yaml'

nerm/parameters/query/after_id.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: after_id
2+
in: query
3+
description: Represents the ID where the query should begin from. If blank, it represents the first ID. When used, forces sorting by ID ascending and does not allow use of `offset`. When after_id is specified it changes the mode of the API such that any filter parameters other than profile_type_id, limit, and offset are not supported and will be either silently ignored or result in an HTTP 400 error. For example you can not include and after_id along with an archived=false in the same request.
4+
required: false
5+
schema:
6+
type: string
7+
format: uuid
8+
example: 4eaa719f-4312-4c5b-9264-d0eb04d4a02a

nerm/paths/profiles.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ get:
1111
- $ref: "../parameters/query/profile_type_id.yaml"
1212
- $ref: "../parameters/query/status.yaml"
1313
- $ref: "../parameters/query/metadata.yaml"
14+
- $ref: "../parameters/query/after_id.yaml"
1415
responses:
1516
'200':
1617
$ref: "../responses/Profiles_Meta.yaml"

nerm/responses/Profiles_Meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ content:
99
items:
1010
$ref: '../schemas/GET/Profile.yaml'
1111
_metadata:
12-
$ref: '../schemas/Metadata.yaml'
12+
$ref: '../schemas/MetadataWithAfterId.yaml'

nerm/schemas/MetadataWithAfterId.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
type: object
2+
properties:
3+
limit:
4+
type: integer
5+
description: The maximum number of records to return in the search
6+
example: /endpoint?limit=10
7+
format: int32
8+
offset:
9+
type: integer
10+
description: The number of records to skip before starting to return results.
11+
example: /endpoint?offset=60
12+
format: int32
13+
total:
14+
type: integer
15+
description: The total number of records available matching the search criteria.
16+
example: /endpoint?total=10
17+
format: int32
18+
next:
19+
type: string
20+
description: The ID of the first record in the next set of results
21+
example: /endpoint?limit=10&offset=60
22+
previous:
23+
type: string
24+
description: The ID of the last record in the previous set of results
25+
example: /endpoint?limit=10&offset=40
26+
after_id:
27+
type: string
28+
format: uuid
29+
example: 4eaa719f-4312-4c5b-9264-d0eb04d4a02a
30+
description: The ID from which the search will start, ignoring all records before it.

0 commit comments

Comments
 (0)