Comment upvote Resource

Upvoting Comments

Describes a parameterless endpoint which allow upvoting and revoking of upvotes. A comment can be upvoted once by the currently signed in user. Users can upvote every comment (even their own) as long as it wasn't deleted. Both endpoints return the new current upvote_count count of the respective comment. This count may have been influenced by other upvotes, meanwhile.

Upvote Comment

A user may upvote a comment via this endpoint. It will fail if the user already upvoted the comment.

POST /comments/:ID/upvote

Response

{
  "upvote_count": 21
}

Withdraw upvote for Comment

An upvote for a Comment can be revoked by calling the Endpoint with DELETE method. User must have upvoted the Comment before, otherwise the request will fail.

DELETE /comments/:ID/upvote

Response

{
  "upvote_count": 21
}