Skip to content

Commit

Permalink
Change error code for invalid pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-kicinski authored Oct 23, 2023
1 parent f1011d8 commit 3f9f2fb
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions code/API_definitions/qod-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,28 @@ paths:
schema:
$ref: "#/components/schemas/SessionInfoList"
"400":
$ref: "#/components/responses/Generic400"
description: Invalid pagination for getSession operation
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfo"
examples:
PageOutOfRange:
summary: The page number is out of the range
value:
status: 400
code: INVALID_PAGINATION
message: "Invalid pagination: page number out of the range"
InvalidPerPageValue:
summary: The perPage value is less than 1
value:
status: 400
code: INVALID_PAGINATION
message: "Invalid pagination: perPage value can't be less than 1"
"401":
$ref: "#/components/responses/Generic401"
"403":
$ref: "#/components/responses/Generic403"
"404":
$ref: "#/components/responses/Generic404"
"500":
$ref: "#/components/responses/Generic500"
"503":
Expand Down

0 comments on commit 3f9f2fb

Please sign in to comment.