Skip to content
Luigi Maselli edited this page Apr 8, 2017 · 4 revisions

Frontend (per ora sono abbozzate cosi poi eventualmente le porto su swagger)

// GET /state

{
    "song": {
        "title": "Il cielo in una stanza",
        "author": "albano",
        "color": "#eee",
        "id": 123
    },
    "winner_user_id": 42315,
    "ts": 123455432
}
// to do merge with {current_user: 54321}

// GET /songlist

[
    {
        "title": "Il cielo in una stanza",
        "author": "Albano",
        "color": "#eee",
        "id": 123
    },
    {
        "title": "Ero io forse",
        "author": "Mina",
        "color": "#ddd",
        "id": 123
    }
]

// POST /vote

{
    "song_id": 1234,
    "user_id": 4321
}

// response

200

Backend

Volumio

Clone this wiki locally