Requests

Vote for a request

POST/api/requests/{id}/vote
Open. Open to everyone who can reach Tempolight.

Adds a vote.

Path parameters

idstringrequired

A request id (r…).

Responses

200OKapplication/json
idstring

r…

titlestring
bystring
votesinteger
atnumber

When it was asked for (ms).

doneboolean
mergedboolean

The same song was asked for already: a vote was added.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/requests/r2k8d1/vote'
Response
{
  "id": "r2k8d1",
  "title": "Daft Punk – One More Time",
  "by": "Sam",
  "votes": 3,
  "at": 1762200000000
}
Edit on GitHub