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:
- application/json
parameters:
- name: userId
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.
- name: 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
schema:
type: string
enum: [ department, user ]
example: department
- name: id
description: Entity id.
in: body
required: true
schema:
type: string
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
- name: score
description: Feedback score.
in: body
required: true
schema:
type: number
minimum: 1
maximum: 5
example: 5
- name: text
description: Feedback text.
in: body
required: true
schema:
type: string
example: Example text.
- name: isAnonymous
description: Anonymous feedback.
in: body
required: false
schema:
type: boolean
example: true
type: object
properties:
userId:
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 ]
example: department
required: true
id:
type: string
description: Entity id.
example: cd1a4391-9fa7-4ae3-80c1-f9b46ad1838d
required: true
score:
type: number
description: Feedback score.
minimum: 1
maximum: 5
example: 5
required: true
text:
type: string
description: Feedback text.
example: Example text.
required: true
isAnonymous:
type: boolean
description: Anonymous feedback.
example: true
default: false
required: false
responses:
200:
description: Returns the success status and data of the generated feedback.