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

@@ -68,7 +68,7 @@ func init() {
}
}
},
"/feedback/{feedback_uuid}/upvote": {
"/feedback/{feedback_uuid}/vote": {
"post": {
"description": "Upvote a feedback",
"tags": [
@@ -90,6 +90,16 @@ func init() {
"name": "session_uuid",
"in": "query",
"required": true
},
{
"enum": [
"upvote",
"downvote"
],
"type": "string",
"name": "action",
"in": "query",
"required": true
}
],
"responses": {
@@ -198,6 +208,12 @@ func init() {
"support"
]
},
"upvoted": {
"type": "boolean"
},
"upvotes": {
"type": "integer"
},
"user_id": {
"description": "to have more context about the user",
"type": "string"
@@ -257,7 +273,7 @@ func init() {
}
}
},
"/feedback/{feedback_uuid}/upvote": {
"/feedback/{feedback_uuid}/vote": {
"post": {
"description": "Upvote a feedback",
"tags": [
@@ -279,6 +295,16 @@ func init() {
"name": "session_uuid",
"in": "query",
"required": true
},
{
"enum": [
"upvote",
"downvote"
],
"type": "string",
"name": "action",
"in": "query",
"required": true
}
],
"responses": {
@@ -387,6 +413,12 @@ func init() {
"support"
]
},
"upvoted": {
"type": "boolean"
},
"upvotes": {
"type": "integer"
},
"user_id": {
"description": "to have more context about the user",
"type": "string"