pagination
This commit is contained in:
parent
2d3e14098c
commit
65c7fc3de5
34
backend.yml
34
backend.yml
@ -92,7 +92,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ListArray'
|
$ref: '#/components/schemas/MainList'
|
||||||
|
|
||||||
|
|
||||||
/api/lists/{listid}:
|
/api/lists/{listid}:
|
||||||
@ -109,6 +109,18 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
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:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: List data
|
description: List data
|
||||||
@ -148,19 +160,35 @@ paths:
|
|||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
ListArray:
|
MainList:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
ids:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/List'
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
element_count:
|
||||||
|
type: integer
|
||||||
|
count:
|
||||||
|
type: integer
|
||||||
List:
|
List:
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
- element_count
|
||||||
- tracklist
|
- tracklist
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
element_count:
|
||||||
|
type: integer
|
||||||
tracklist:
|
tracklist:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
Loading…
Reference in New Issue
Block a user