A Python web application running Flask. Serves dummy music data for use in another project ipod_app Processes requests to serve data from a MySQL database
Hosted through Heroku here
-
GET /: Pings the database for all albumsOutput: { "Albums": [ { "artist": "Band Name", "cover": "Link to cover art", "id": "########-####-####-####-############", "name": "Album Name", "songs": [ (########-####-####-####-############, Song_Name), ... ] }, ... ] } -
GET /albums: Pings the database for all albumsOutput: { "Albums": [ { "artist": "Band Name", "cover": "Link to cover art", "id": "########-####-####-####-############", "name": "Album Name", "songs": [ (########-####-####-####-############, Song_Name), ... ] }, ... ] } -
GET /artists: Pings the database for all artistsOutput: { "Artists": [ { "albums": [ "########-####-####-####-############", ... ], "id": "########-####-####-####-############", "name": "Artist Name", "songs": [ "########-####-####-####-############", ... ] }, ... ] } -
Get /songs: Pings the database for all songsOutput: { "Songs": [ { "album": "Album Name", "artist": "Artist Name", "id": "########-####-####-####-############", "name": "Song Name" }, ... ] }
Current build is unstable.
Some request may not be able to connect to the database.
On failure the response will look like: {"Artists":"artist"}
Reloading the page should or retrying the request should fix this.