From 8bcc006bf83042c8fee450874a84a0b6e4940950 Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 7 Feb 2024 15:45:54 +0000 Subject: [PATCH] Update v2/swagger.yaml --- v2/swagger.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/v2/swagger.yaml b/v2/swagger.yaml index 936b9d7..8a66a81 100644 --- a/v2/swagger.yaml +++ b/v2/swagger.yaml @@ -1850,6 +1850,56 @@ paths: 500: description: Server Error. + /file/count: + get: + tags: + - file + summary: count user files. + operationId: /file/count + parameters: + - name: search + in: query + description: Query string + schema: + type: string + example: Some text + responses: + 200: + description: File objects. + content: + application/json: + schema: + type: object + properties: + image: + type: integer + default: 320 + video: + type: integer + default: 10 + document: + type: integer + default: 10 + archive: + type: integer + default: 0 + other: + type: integer + default: 0 + encrypted: + type: integer + default: 0 + 400: + description: Bad Request. + 401: + description: Unauthorized. + 403: + description: Unauthorized. + 404: + description: Unauthorized. + 500: + description: Server Error. + /user-status/index: get: tags: @@ -4832,4 +4882,4 @@ components: mime_type: description: File MIME-Type. type: string - example: image/png \ No newline at end of file + example: image/png