Skip to content

Commit

Permalink
Remove pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-kicinski authored Nov 17, 2023
1 parent 3f9f2fb commit 26d3bca
Showing 1 changed file with 3 additions and 54 deletions.
57 changes: 3 additions & 54 deletions code/API_definitions/qod-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,51 +226,15 @@ paths:
tags:
- QoS sessions
summary: Get all active sessions information
description: Get information about all active sessions that were created by the client
description: Get information about all active sessions authorized to be retrieved by the provided access token.
operationId: getSessions
parameters:
- name: perPage
in: query
required: false
schema:
$ref: "#/components/schemas/PerPage"
- name: page
in: query
required: false
schema:
$ref: "#/components/schemas/Page"
responses:
"200":
description: Contains information about the complete list of active sessions
content:
application/json:
schema:
$ref: "#/components/schemas/SessionInfoList"
"206":
description: Contains information about the incomplete list of active sessions
content:
application/json:
schema:
$ref: "#/components/schemas/SessionInfoList"
"400":
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":
Expand Down Expand Up @@ -494,18 +458,15 @@ components:
- qosStatus

SessionInfoList:
description: Paged response of active sessions created by the user
description: List response of active sessions authorized to be retrieved by the provided access token.
type: object
required:
- sessions
properties:
perPage:
$ref: "#/components/schemas/PerPage"
page:
$ref: "#/components/schemas/Page"
sessions:
description: Array of sessions to be returned.
type: array
minItems: 0
items:
type: object
$ref: "#/components/schemas/SessionInfo"
Expand Down Expand Up @@ -1070,18 +1031,6 @@ components:
- code
- message

PerPage:
description: Number of resources requested to be provided in the response.
type: integer
format: int32
default: 20

Page:
description: Requested page number to indicate the start of the resources to be provided in the response (considering perPage page size). The first page has the number "0".
type: integer
format: int32
default: 0

responses:
Generic400:
description: Invalid input
Expand Down

0 comments on commit 26d3bca

Please sign in to comment.