POST /cards/{cardId}/vote
Description
Adds a vote to the specified card and returns a JSON object containing the ID of the user who voted.
This route processes an HTTP POST request sent to the /cards/{cardId}/vote endpoint.
Payload
No payload needs to be sent with the request.
Response
The response includes a JSON object with the ID of the user who cast the vote.
Example:
{
"id": 1
}
The HTTP status code indicates the result of the request: 200 means success, while 500 indicates a failure.
Related articles: Working with server