From ac9ebc6364239896bdb2a13206e599ad9d7bc94b Mon Sep 17 00:00:00 2001 From: selfhoster Date: Tue, 3 Dec 2019 10:34:10 +0000 Subject: [PATCH] GET REST documentation --- REST API.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/REST API.md b/REST API.md index 2b915b0..88584dd 100644 --- a/REST API.md +++ b/REST API.md @@ -13,6 +13,12 @@ Content-Type: application/json } ``` +or + +``` http +GET http://localhost:1730/api/download/?url=https://www.deezer.com/album/115542362 +``` + ## Search for a track, album, playlist or artist ``` JSON POST http://localhost:1730/api/search/ @@ -27,6 +33,12 @@ Content-Type: application/json } ``` +or + +``` http +GET http://localhost:1730/api/search/?album=my favourite album - my favouite artist +``` + ## Retrieve tracklist for an album, artist, playlist or spotifyplaylist ``` JSON POST http://localhost:1730/api/tracks/ @@ -41,7 +53,13 @@ Content-Type: application/json } ``` +or + +``` http +GET http://localhost:1730/api/tracks/?album=115542362 +``` + ## Retrieve length of, and items in Download Queue -``` JSON +``` http GET http://localhost:1730/api/queue/ ``` \ No newline at end of file