From 8d8d1b5a2e8bc77f69a6a06390078bc32759d78e Mon Sep 17 00:00:00 2001 From: blek Date: Tue, 12 Dec 2023 17:02:50 +1000 Subject: [PATCH] add bodies to responses --- filed/docs/file_api.swagger.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/filed/docs/file_api.swagger.yml b/filed/docs/file_api.swagger.yml index 36311fc..fe9e0f8 100644 --- a/filed/docs/file_api.swagger.yml +++ b/filed/docs/file_api.swagger.yml @@ -131,6 +131,13 @@ paths: responses: 200: description: File uploaded successfully + content: + application/json: + schema: + type: object + properties: + status: + example: 'OK' 401: description: |- This error code is returned if one of the two conditions are met: @@ -139,6 +146,15 @@ paths: 2. The instance requires API key for all API manipulations. 3. The provided API key is invalid. 4. API authorization is not enabled, but a key is provided + content: + application/json: + schema: + type: object + properties: + error: + example: 'APIPasswordDenied' + details: + example: 'API password authorization has been denied.' components: