From f44bba8a240d1a32b9382fde51435438a01fa158 Mon Sep 17 00:00:00 2001 From: Bilal Dertli <127341202+bilalbdertli@users.noreply.github.com> Date: Sat, 20 Jan 2024 18:47:29 +0300 Subject: [PATCH] Swagger Update --- openapi.json | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/openapi.json b/openapi.json index 7bf9703..c6e834f 100644 --- a/openapi.json +++ b/openapi.json @@ -4743,17 +4743,46 @@ ], "responses": { "200": { - "description": "asd", + "description": "List of playlists retrieved successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { - "playlists": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/Playlist" + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "song_imgs": { + "type": "array", + "items": { + "type": "string", + "format": "url" + } + }, + "user_id": { + "type": "integer", + "nullable": true + }, + "friend_group_id": { + "type": "integer", + "nullable": true + } + } } + }, + "count": { + "type": "integer" } } }