POST /cards/{cardId}/vote
Description
Adds a new vote to the card and returns a json object with the voting user ID
This route accepts an HTTP POST request at the /cards/{cardId}/vote
endpoint.
Payload
No payload needs to be sent with this request.
Response
The response includes a JSON object containing the ID of the user who voted.
Example:
{
"id": 1
}
The HTTP status code indicates the outcome: a status of 200 means the request was successful, while 500 indicates an error.
Related articles: Working with server