Feedback upd

This commit is contained in:
ruslan
2023-02-02 14:49:39 +02:00
parent 1019b466e0
commit cc896d2c7c
+22 -26
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: object
properties:
userId:
type: string type: string
description: User ID from which the feedback will be created.
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
required: false
type:
type: string
description: Entity type.
enum: [ department, user ] enum: [ department, user ]
example: department example: department
- name: id
description: Entity id.
in: body
required: true required: true
schema: id:
type: string type: string
description: Entity id.
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
- name: score
description: Feedback score.
in: body
required: true required: true
schema: score:
type: number type: number
description: Feedback score.
minimum: 1 minimum: 1
maximum: 5 maximum: 5
example: 5 example: 5
- name: text
description: Feedback text.
in: body
required: true required: true
schema: text:
type: string type: string
description: Feedback text.
example: Example text. example: Example text.
- name: isAnonymous required: true
description: Anonymous feedback. isAnonymous:
in: body
required: false
schema:
type: boolean type: boolean
description: Anonymous feedback.
example: true 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.