Remove vote from post

Remove vote from a post

DELETE
/votes

Remove vote from a post

Authorization

bearerAuth
headerAuthorizationBearer <token>

JWT Bearer token authentication

Request Body

application/json
  1. body
postId*string

ID of the post to vote on.

Response Body

Vote removed

application/json
  1. response
voters?
Example Request
curl -X DELETE 'http://localhost:8000/api/v1/votes' \  -H 'Content-Type: application/json' \  -d '{  "postId": "string"}'
Example Response
{  "voters": {    "votes": [      {        "voteId": "string",        "userId": "string",        "postId": "string",        "createdAt": "string",        "name": "string",        "username": "string",        "avatar": "string"      }    ],    "votesCount": 0,    "viewerVote": {      "voteId": "string",      "userId": "string",      "postId": "string",      "createdAt": "string"    }  }}