pagination

This commit is contained in:
Torma Kristóf 2020-11-26 02:31:14 +01:00
parent 2d3e14098c
commit 65c7fc3de5

View File

@ -92,7 +92,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ListArray'
$ref: '#/components/schemas/MainList'
/api/lists/{listid}:
@ -109,6 +109,18 @@ paths:
schema:
type: string
format: uuid
- name: offset
in: query
description: Pagination offset
required: false
schema:
type: integer
- name: limit
in: query
description: Pagination limit
required: false
schema:
type: integer
responses:
200:
description: List data
@ -148,19 +160,35 @@ paths:
components:
schemas:
ListArray:
type: array
items:
$ref: '#/components/schemas/List'
MainList:
type: object
properties:
ids:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
element_count:
type: integer
count:
type: integer
List:
required:
- id
- element_count
- tracklist
type: object
properties:
id:
type: string
format: uuid
element_count:
type: integer
tracklist:
type: array
items: