Radios API

INTRO

API documentation of https://foutaise.org/radios/

GET https://foutaise.org/radios/api/v1/help

Display this API documentation.

Response

text/html

GET https://foutaise.org/radios/api/v1/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/v1/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/v1/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/v1/lastplayed \
        -d "radio=Radio Paradise"