Remove vote from post
Remove vote from a post
DELETE
Remove vote from a post
bearerAuthheader
AuthorizationBearer <token>JWT Bearer token authentication
application/json- body
postId*stringID of the post to vote on.
Vote removed
application/json- response
voters?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" } }}