diff --git a/backend.yml b/backend.yml index eb6649e..2ce7a6e 100644 --- a/backend.yml +++ b/backend.yml @@ -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: