Requests
List requests
GET
/api/requestsOpen. Open to everyone who can reach Tempolight.
Open requests, most votes first.
Responses
200OKapplication/json
enabledbooleanrequestsobject[]Request
curl 'http://localhost:8080/api/requests'const res = await fetch("http://localhost:8080/api/requests");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/requests",
)
print(res.json())Response
{
"enabled": true,
"requests": [
{
"id": "r2k8d1",
"title": "Daft Punk – One More Time",
"by": "Sam",
"votes": 3,
"at": 1762200000000
}
]
}