From 14f6c3ce4f24206bfe156af66bafd93c4aee2c3c Mon Sep 17 00:00:00 2001 From: kirill Date: Thu, 15 Jun 2023 11:56:57 +0600 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=B0=D0=BB=D0=B5=D0=BD=D0=B4=D0=B0=D1=80=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/swagger.yml | 194 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 192 insertions(+), 2 deletions(-) diff --git a/v2/swagger.yml b/v2/swagger.yml index 96ea896..b97bc74 100644 --- a/v2/swagger.yml +++ b/v2/swagger.yml @@ -339,6 +339,100 @@ paths: 500: description: Server Error + /user/items: + get: + tags: + - user + summary: User items. + operationId: actionItems + parameters: + - name: name + in: query + type: string + - name: q + in: query + type: string + consumes: + - application/json + produces: + - application/json + responses: + 200: + description: User items. + schema: + properties: + data: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + name: + type: string + faceUrl: + type: string + + 400: + description: Bad Request. + 401: + description: Unathorized request. + 403: + description: Unathorized request. + 404: + description: Calendar event not found. + 500: + description: Server Error. + + /user-group/items: + get: + tags: + - userGroup + summary: User group items. + operationId: actionItems + parameters: + - name: name + in: query + type: string + - name: only_with_calendar_events + in: query + type: integer + description: Only used in calendar event + example: '0 or 1' + consumes: + - application/json + produces: + - application/json + responses: + 200: + description: User group items. + schema: + properties: + data: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + name: + type: string + faceUrl: + type: string + + 400: + description: Bad Request. + 401: + description: Unathorized request. + 403: + description: Unathorized request. + 404: + description: Calendar event not found. + 500: + description: Server Error. + /account/status-text: post: tags: @@ -1004,19 +1098,24 @@ paths: type: string format: 'date-time' description: Default current month + example: '2023-01-01 10:00:00' - name: end_date_time in: query type: string format: 'date-time' description: Default current month +3 month + example: '2023-04-01 10:00:00' - name: calendar_event_type_id in: query - type: integer + type: string enum: [1, 2, 3, 4, 5, 6] description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR + example: '1,2,3 or 1' - name: entity_id in: query type: integer + enum: [1030] + description: Communication with entities, for example, is used in meeting places. 1030 - MeetingPlace - name: calendar_event_entity_item_id in: query type: string @@ -1030,6 +1129,7 @@ paths: description: Visible to user group type: string format: uuid + example: '9f7063d1-959e-4c32-b186-313576375739,3a7539cb-d85e-4455-af41-fc505d1ce6dd or 3a7539cb-d85e-4455-af41-fc505d1ce6dd' consumes: - application/json produces: @@ -1054,6 +1154,86 @@ paths: 500: description: Server Error. + /calendar-event/items: + get: + tags: + - calendarEvent + summary: Calendar event items. + operationId: actionItems + parameters: + - name: title + in: query + type: string + - name: title_exact + in: query + type: string + - name: start_date_time + in: query + type: string + format: 'date-time' + description: Default current month + example: '2023-01-01 10:00:00' + - name: end_date_time + in: query + type: string + format: 'date-time' + description: Default current month +3 month + example: '2023-04-01 10:00:00' + - name: calendar_event_type_id + in: query + type: string + enum: [1, 2, 3, 4, 5, 6] + description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR + example: '1,2,3 or 1' + - name: entity_id + in: query + type: integer + enum: [1030] + description: Communication with entities, for example, is used in meeting places. 1030 - MeetingPlace + - name: calendar_event_entity_item_id + in: query + type: string + format: uuid + - name: user_id + in: query + type: string + format: uuid + - name: visible_to + in: query + description: Visible to user group + type: string + format: uuid + example: '9f7063d1-959e-4c32-b186-313576375739,3a7539cb-d85e-4455-af41-fc505d1ce6dd or 3a7539cb-d85e-4455-af41-fc505d1ce6dd' + consumes: + - application/json + produces: + - application/json + responses: + 200: + description: Calendar event items. + schema: + properties: + data: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + title: + type: string + 400: + description: Bad Request. + 401: + description: Unathorized request. + 403: + description: Unathorized request. + 404: + description: Calendar event not found. + 500: + description: Server Error. + /calendar-event/my: get: tags: @@ -1072,28 +1252,38 @@ paths: type: string format: 'date-time' description: Default current month + example: '2023-01-01 10:00:00' - name: end_date_time in: query type: string format: 'date-time' description: Default current month +3 month + example: '2023-04-01 10:00:00' - name: calendar_event_type_id in: query - type: integer + type: string enum: [1, 2, 3, 4, 5, 6] description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR + example: '1,2,3 or 1' - name: entity_id in: query type: integer + enum: [1030] + description: Communication with entities, for example, is used in meeting places. 1030 - MeetingPlace - name: calendar_event_entity_item_id in: query type: string format: uuid + - name: user_id + in: query + type: string + format: uuid - name: visible_to in: query description: Visible to user group type: string format: uuid + example: '9f7063d1-959e-4c32-b186-313576375739,3a7539cb-d85e-4455-af41-fc505d1ce6dd or 3a7539cb-d85e-4455-af41-fc505d1ce6dd' consumes: - application/json produces: