From 015eab0869f84a53cb47ac09c63f70c77627ade1 Mon Sep 17 00:00:00 2001 From: Kun Deng Date: Thu, 18 Jul 2019 20:06:10 -0400 Subject: [PATCH] Updated Album (markdown) --- Album.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) 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