Skip to content
Kun Deng edited this page Jul 19, 2019 · 5 revisions

Retrieve album

URI: https://icarus-demo.com/api/v1/album/2
Method: Get
Content type: application/json
Authorization: Bearer token
Response body:

{
    "id" : 2,
    "title" : "Damn",
    "album_artist" : "Kendrick Lamar",
    "song_count" : 1
}

Retrieve all albums

URI: https://icarus-demo.com/api/v1/album/
Method: Get
Content type: application/json
Authorization: Bearer token
Response body:

[
    {
        "id" : 1,
        "title" : "I Thought I Was an Alien",
        "album_artist" : "Soko",
        "song_count" : 1
    },
    {
        "id" : 2,
        "title" : "Damn",
        "album_artist" : "Kendrick Lamar",
        "song_count" : 1
    },
    {
        "id" : 3,
        "title" : "Giving Myself To You",
        "album_artist" : "Gerald Albright",  
        "song_count" : 1
    }
]

Clone this wiki locally