From 39aa88b4636ade249eb79dcaf4754d8c62ad4228 Mon Sep 17 00:00:00 2001 From: ruslan Date: Tue, 7 Feb 2023 16:11:03 +0200 Subject: [PATCH] =?UTF-8?q?Feedback:=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20add=20?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/swagger.yml | 114 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 76 insertions(+), 38 deletions(-) diff --git a/v2/swagger.yml b/v2/swagger.yml index 9f68a7a..b4536b2 100644 --- a/v2/swagger.yml +++ b/v2/swagger.yml @@ -893,54 +893,50 @@ paths: type: boolean feedback: type: object - properties: - id: - description: Feedback model ID. - type: string - example: 77a14e58-7de2-4f50-bd1c-d2904f2a7b79 - user_id: - description: User model ID. - type: string - example: null - department_id: - description: Department model ID. - type: string - example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d - score: - description: Feedback score. - type: number - example: 5 - text: - description: Feedback text. - type: string - example: Example text. - is_anonymous: - description: Anonymous feedback. - type: boolean - example: false - user_name: - description: The user name to which the feedback was left. - type: string - example: "" - department_name: - description: The department name to which the feedback was left. - type: string - example: "Fast food department" - created_user_name: - description: The user name of the person who left the feedback. - type: string - example: "Colonel Sanders" + $ref: '#/definitions/feedback' 400: description: Bad Request. Returns a message with the error details. 401: description: Unathorized request. 403: - description: Forbidden. + description: Unathorized request. 404: description: Not found. Returns a message with the error details. 500: description: Server Error. + /feedback/view: + get: + tags: + - feedback + summary: Details about feedback. + operationId: actionView + consumes: + - application/json + produces: + - application/json + parameters: + - name: id + in: query + description: Feedback item ID. + type: string + required: true + responses: + 200: + description: Feedback details. + schema: + $ref: '#/definitions/feedback' + 400: + description: Bad Request. + 401: + description: Unathorized request. + 403: + description: Unathorized request. + 404: + description: Feedback not found. + 500: + description: Server Error. + definitions: accountSecret: @@ -1540,6 +1536,48 @@ definitions: xml: name: item + feedback: + type: object + properties: + id: + description: Feedback model ID. + type: string + format: uuid + user_id: + description: User model ID. + type: string + format: uuid + default: null + department_id: + description: Department model ID. + type: string + format: uuid + default: null + score: + description: Feedback score. + type: integer + example: 5 + text: + description: Feedback text. + type: string + example: Example text. + is_anonymous: + description: Anonymous feedback. + type: boolean + example: false + default: false + user_name: + description: The user name to which the feedback was left. + type: string + default: "" + department_name: + description: The department name to which the feedback was left. + type: string + default: "" + created_user_name: + description: The name of the user who left the feedback if it was not anonymous. + type: string + # Added by API Auto Mocking Plugin # host: api.hrbox.io # basePath: /api/v2