Skip to content

Commit 240a6bd

Browse files
committed
add pagination
1 parent c7e3db4 commit 240a6bd

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

specs/ingestion/common/parameters.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,19 @@ taskID:
3333
schema:
3434
type: string
3535
example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f
36+
37+
itemsPerPage:
38+
name: itemsPerPage
39+
in: query
40+
description: The number of items per page to return
41+
required: false
42+
schema:
43+
type: integer
44+
45+
page:
46+
name: page
47+
in: query
48+
description: The page number to fetch, starting at 1
49+
required: false
50+
schema:
51+
type: integer

specs/ingestion/paths/authentications/authentications.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ get:
44
summary: Get a list of authentications.
55
description: Get a list of authentications.
66
operationId: getAuthentications
7+
parameters:
8+
- $ref: '../../common/parameters.yml#/itemsPerPage'
9+
- $ref: '../../common/parameters.yml#/page'
710
responses:
811
'200':
912
description: OK

specs/ingestion/paths/destinations/destinations.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ get:
44
summary: Get a list of destinations.
55
description: Get a list of destinations.
66
operationId: getDestinations
7+
parameters:
8+
- $ref: '../../common/parameters.yml#/itemsPerPage'
9+
- $ref: '../../common/parameters.yml#/page'
710
responses:
811
'200':
912
description: OK

specs/ingestion/paths/sources/sources.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ get:
44
summary: Get a list of sources.
55
description: Get a list of sources.
66
operationId: getSources
7+
parameters:
8+
- $ref: '../../common/parameters.yml#/itemsPerPage'
9+
- $ref: '../../common/parameters.yml#/page'
710
responses:
811
'200':
912
description: OK

specs/ingestion/paths/tasks/tasks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ get:
44
summary: Get a list of tasks.
55
description: Get a list of tasks.
66
operationId: getTasks
7+
parameters:
8+
- $ref: '../../common/parameters.yml#/itemsPerPage'
9+
- $ref: '../../common/parameters.yml#/page'
710
responses:
811
'200':
912
description: OK

0 commit comments

Comments
 (0)