upvotes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
2024-04-23 19:13:48 +03:00
parent a1df10c37e
commit ed403c2c72
11 changed files with 147 additions and 17 deletions

View File

@@ -36,7 +36,7 @@ paths:
403:
description: "Forbidden"
/feedback/{feedback_uuid}/upvote:
/feedback/{feedback_uuid}/vote:
post:
summary: "Upvote a feedback"
tags:
@@ -54,12 +54,20 @@ paths:
description: "Session UUID"
required: true
type: string
- in: query
type: string
name: action
enum:
- "upvote"
- "downvote"
required: true
responses:
200:
description: "successful operation"
403:
description: "Forbidden"
/feedbacks:
get:
summary: "Get all feedbacks"
@@ -128,6 +136,10 @@ definitions:
- support
text:
type: string
upvoted:
type: boolean
upvotes:
type: integer
created_at:
type: string
format: date-time