From 1eb7dd8f1a87353caf4203c06d5d78187a0e8d39 Mon Sep 17 00:00:00 2001 From: kirill Date: Tue, 3 Sep 2024 11:55:22 +0600 Subject: [PATCH] feat: timezone --- v2/swagger.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/v2/swagger.yaml b/v2/swagger.yaml index 1a0676c..0d51e9f 100644 --- a/v2/swagger.yaml +++ b/v2/swagger.yaml @@ -3038,6 +3038,52 @@ paths: 500: description: Server Error. + /timezone/index: + get: + tags: + - timezone + summary: Timezone index. + operationId: /timezone/index + parameters: + - name: id + in: query + description: Идентификатор + schema: + type: string + example: Africa + - name: name + in: query + description: Название + schema: + type: string + example: Москва + responses: + 200: + description: Timezone objects. + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/timezone' + _links: + $ref: '#/components/schemas/_links' + _meta: + $ref: '#/components/schemas/_meta' + 400: + description: Bad Request. + 401: + description: Unauthorized. + 403: + description: Unauthorized. + 404: + description: Not found. + 500: + description: Server Error. + components: schemas: _meta: @@ -3747,6 +3793,14 @@ components: name: type: string + timezone: + type: object + properties: + id: + type: string + name: + type: string + contact: type: object properties: