Feedback upd

This commit is contained in:
ruslan
2023-02-02 14:49:39 +02:00
parent 1019b466e0
commit cc896d2c7c
+38 -42
View File
@@ -842,51 +842,47 @@ paths:
produces: produces:
- application/json - application/json
parameters: parameters:
- name: userId - name: body
description: User ID from which the feedback will be created.
in: body
required: false
schema:
type: string
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
- name: type
description: Entity type.
in: body in: body
description: <b>userId</b> - User ID from which the feedback will be created. <b>type</b> - Entity type (department, user). <b>id</b> - Entity id. <b>score</b> - Feedback score from 1 to 5. <b>text</b> - Feedback text. <b>isAnonymous</b> - Anonymous feedback.
required: true required: true
schema: schema:
type: string type: object
enum: [ department, user ] properties:
example: department userId:
- name: id type: string
description: Entity id. description: User ID from which the feedback will be created.
in: body example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
required: true required: false
schema: type:
type: string type: string
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d description: Entity type.
- name: score enum: [ department, user ]
description: Feedback score. example: department
in: body required: true
required: true id:
schema: type: string
type: number description: Entity id.
minimum: 1 example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
maximum: 5 required: true
example: 5 score:
- name: text type: number
description: Feedback text. description: Feedback score.
in: body minimum: 1
required: true maximum: 5
schema: example: 5
type: string required: true
example: Example text. text:
- name: isAnonymous type: string
description: Anonymous feedback. description: Feedback text.
in: body example: Example text.
required: false required: true
schema: isAnonymous:
type: boolean type: boolean
example: true description: Anonymous feedback.
example: true
default: false
required: false
responses: responses:
200: 200:
description: Returns the success status and data of the generated feedback. description: Returns the success status and data of the generated feedback.