From 359d737cbd939a2c0c8a1fcc3068f796c003a7fa Mon Sep 17 00:00:00 2001 From: Anton Pomorzin Date: Tue, 26 Aug 2025 21:32:44 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=B2=D0=B8=D0=B4=D0=B6=D0=B5=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B8=D0=B4=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/swagger.yaml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/v2/swagger.yaml b/v2/swagger.yaml index 587969c..6c6e8fc 100644 --- a/v2/swagger.yaml +++ b/v2/swagger.yaml @@ -1888,7 +1888,7 @@ paths: $ref: '#/components/schemas/dashboardWidget' updIdeas: # description: Company feed - New ideas - $ref: '#/components/schemas/dashboardWidget' + $ref: '#/components/schemas/dashboardIdeaWidget' updAchievements: # description: Company feed - New achievements achieved by users $ref: '#/components/schemas/dashboardWidget' @@ -7398,6 +7398,43 @@ components: xml: name: item + dashboardIdeaWidget: + allOf: + - $ref: '#/components/schemas/dashboardWidget' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/updIdeaWidgetItem' + - type: object + properties: + data: + type: object + properties: + mostRecent: + type: array + description: Топ самых популярный идей по количеству голосов + items: + $ref: '#/components/schemas/updIdeaWidgetItem' + notView: + type: array + description: Идеи которые еще не были просмотрены пользователем + items: + $ref: '#/components/schemas/updIdeaWidgetItem' + + updIdeaWidgetItem: + allOf: + - $ref: '#/components/schemas/dashboardWidgetItem' + - type: object + properties: + data: + type: object + properties: + countVoted: + type: integer + description: Количество пользователей проголосовавших за идею + feedback: type: object properties: -- 2.54.0