|
|
@ -10,7 +10,7 @@ put:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
description: a valid post id
|
|
|
|
description: a valid post id
|
|
|
|
example: 1
|
|
|
|
example: 2
|
|
|
|
requestBody:
|
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
content:
|
|
|
@ -21,8 +21,7 @@ put:
|
|
|
|
delta:
|
|
|
|
delta:
|
|
|
|
type: number
|
|
|
|
type: number
|
|
|
|
description: Positive integer for upvote, negative integer for downvote (0 to unvote.)
|
|
|
|
description: Positive integer for upvote, negative integer for downvote (0 to unvote.)
|
|
|
|
example:
|
|
|
|
example: 1
|
|
|
|
delta: 1
|
|
|
|
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
'200':
|
|
|
|
description: Post successfully upvoted
|
|
|
|
description: Post successfully upvoted
|
|
|
@ -41,6 +40,14 @@ delete:
|
|
|
|
- posts
|
|
|
|
- posts
|
|
|
|
summary: unvote a post
|
|
|
|
summary: unvote a post
|
|
|
|
description: This operation removes a pre-cast vote on a post.
|
|
|
|
description: This operation removes a pre-cast vote on a post.
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
|
|
|
|
- in: path
|
|
|
|
|
|
|
|
name: pid
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
description: a valid post id
|
|
|
|
|
|
|
|
example: 2
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
'200':
|
|
|
|
description: Post successfully unvoted
|
|
|
|
description: Post successfully unvoted
|
|
|
|