Skip to content
Snippets Groups Projects
Commit e39fe84f authored by David Schwarzmann's avatar David Schwarzmann
Browse files

feat(api#87): Add query parameters for pagination

parent 5e61081a
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,9 @@ get: ...@@ -8,6 +8,9 @@ get:
- OAuth2: - OAuth2:
- 'subscribe:destination:<id>' - 'subscribe:destination:<id>'
- 'manage:destination:<id>' - 'manage:destination:<id>'
parameters:
- $ref: '../../parameters/pagination/limit.yaml'
- $ref: '../../parameters/pagination/offset.yaml'
responses: responses:
'200': '200':
description: OK description: OK
......
...@@ -16,6 +16,9 @@ get: ...@@ -16,6 +16,9 @@ get:
- 'manage:destination:<id>' - 'manage:destination:<id>'
- 'send:region:DE<region-id>+send:service:<service-uri>' - 'send:region:DE<region-id>+send:service:<service-uri>'
- 'send:region:DE<region-id>' - 'send:region:DE<region-id>'
parameters:
- $ref: '../../../parameters/pagination/limit.yaml'
- $ref: '../../../parameters/pagination/offset.yaml'
responses: responses:
'200': '200':
description: OK description: OK
......
...@@ -9,6 +9,8 @@ get: ...@@ -9,6 +9,8 @@ get:
- 'subscribe:destination:<id>' - 'subscribe:destination:<id>'
parameters: parameters:
- $ref: '../../parameters/destinationIdInQuery.yaml' - $ref: '../../parameters/destinationIdInQuery.yaml'
- $ref: '../../parameters/pagination/limit.yaml'
- $ref: '../../parameters/pagination/offset.yaml'
responses: responses:
'200': '200':
description: OK description: OK
......
name: limit
in: query
description: Anzahl der Teilmenge der Ergebnismenge. Maximum ist 500. Standard ist 100.
required: false
schema:
type: integer
format: int32
minimum: 1
maximum: 500
name: offset
in: query
description: Startposition der Teilmenge der Ergebnismenge. Standard ist 0.
required: false
schema:
type: integer
format: int32
minimum: 0
...@@ -75,6 +75,10 @@ components: ...@@ -75,6 +75,10 @@ components:
$ref: './parameters/destinationIdInQuery.yaml' $ref: './parameters/destinationIdInQuery.yaml'
attachmentId: attachmentId:
$ref: './parameters/attachmentId.yaml' $ref: './parameters/attachmentId.yaml'
limit:
$ref: './parameters/pagination/limit.yaml'
offset:
$ref: './parameters/pagination/offset.yaml'
schemas: schemas:
Submission: Submission:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment