Radios API
INTRO
API documentation of https://foutaise.org/radios/
GET https://foutaise.org/radios/api/help
Display this API documentation.
Response
text/html
GET https://foutaise.org/radios/api/radios
List radios.
Response
application/json: array of objects with the following properties
{
id: uint,
name: string,
stream: string
}
GET https://foutaise.org/radios/api/radios/broken
List broken radio streams.
Response
application/json: array of objects with the following properties
{
id: uint,
name: string,
stream: string
}
POST https://foutaise.org/radios/api/lastplayed
Update the list of last played radios. Push a new radio on top of the last played list, and return the updated list.
Request data
radio: string (required)
Name of the last played radio.
Response
application/json: array of objects with the following properties
{
id: uint,
name: string,
stream: string
}
Example
curl -X POST \
https://foutaise.org/radios/api/lastplayed \
-d "radio=Radio Paradise"