diff --git a/Album.md b/Album.md index 1cf3821..39e41d7 100644 --- a/Album.md +++ b/Album.md @@ -1 +1,43 @@ -## Album \ No newline at end of file +### Retrieve album metadata +**URI**: https://icarus-demo.com/api/v1/album/2 +**Method**: Get +**Content type**: application/json +**Authorization**: Bearer ``token`` +**Response body**: +```Json +{ + "id" : 2, + "title" : "Damn", + "album_artist" : "Kendrick Lamar", + "song_count" : 1 +} +``` + +### Retrieve all album metadata +**URI**: https://icarus-demo.com/api/v1/album/ +**Method**: Get +**Content type**: application/json +**Authorization**: Bearer ``token`` +**Response body**: +```Json +[ + { + "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 + } +] +``` \ No newline at end of file