upvote and feedback list
This commit is contained in:
@@ -68,6 +68,40 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedback/{feedback_uuid}/upvote": {
|
||||
"post": {
|
||||
"description": "Upvote a feedback",
|
||||
"tags": [
|
||||
"feedback"
|
||||
],
|
||||
"summary": "Upvote a feedback",
|
||||
"operationId": "upvoteFeedback",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Feedback UUID",
|
||||
"name": "feedback_uuid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Session UUID",
|
||||
"name": "session_uuid",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "successful operation"
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedbacks": {
|
||||
"get": {
|
||||
"description": "Get all feedbacks",
|
||||
@@ -100,6 +134,39 @@ func init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedbacks/{project_id}": {
|
||||
"get": {
|
||||
"description": "Get all feedbacks for a project",
|
||||
"tags": [
|
||||
"feedback"
|
||||
],
|
||||
"summary": "Get all feedbacks for a project",
|
||||
"operationId": "getFeedbacksForProject",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Project id",
|
||||
"name": "project_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "successful operation",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Feedback"
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
@@ -184,6 +251,40 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedback/{feedback_uuid}/upvote": {
|
||||
"post": {
|
||||
"description": "Upvote a feedback",
|
||||
"tags": [
|
||||
"feedback"
|
||||
],
|
||||
"summary": "Upvote a feedback",
|
||||
"operationId": "upvoteFeedback",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Feedback UUID",
|
||||
"name": "feedback_uuid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Session UUID",
|
||||
"name": "session_uuid",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "successful operation"
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedbacks": {
|
||||
"get": {
|
||||
"description": "Get all feedbacks",
|
||||
@@ -216,6 +317,39 @@ func init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/feedbacks/{project_id}": {
|
||||
"get": {
|
||||
"description": "Get all feedbacks for a project",
|
||||
"tags": [
|
||||
"feedback"
|
||||
],
|
||||
"summary": "Get all feedbacks for a project",
|
||||
"operationId": "getFeedbacksForProject",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Project id",
|
||||
"name": "project_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "successful operation",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Feedback"
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
|
||||
Reference in New Issue
Block a user