upvote and feedback list
This commit is contained in:
@@ -36,6 +36,30 @@ paths:
|
||||
403:
|
||||
description: "Forbidden"
|
||||
|
||||
/feedback/{feedback_uuid}/upvote:
|
||||
post:
|
||||
summary: "Upvote a feedback"
|
||||
tags:
|
||||
- "feedback"
|
||||
description: "Upvote a feedback"
|
||||
operationId: "upvoteFeedback"
|
||||
parameters:
|
||||
- in: path
|
||||
name: feedback_uuid
|
||||
description: "Feedback UUID"
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: session_uuid
|
||||
description: "Session UUID"
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
403:
|
||||
description: "Forbidden"
|
||||
|
||||
/feedbacks:
|
||||
get:
|
||||
summary: "Get all feedbacks"
|
||||
@@ -59,6 +83,29 @@ paths:
|
||||
403:
|
||||
description: "Forbidden"
|
||||
|
||||
/feedbacks/{project_id}:
|
||||
get:
|
||||
summary: "Get all feedbacks for a project"
|
||||
tags:
|
||||
- "feedback"
|
||||
description: "Get all feedbacks for a project"
|
||||
operationId: "getFeedbacksForProject"
|
||||
parameters:
|
||||
- in: path
|
||||
name: project_id
|
||||
description: "Project id"
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Feedback"
|
||||
403:
|
||||
description: "Forbidden"
|
||||
|
||||
definitions:
|
||||
Feedback:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user