From 77f18ab080e4ef4536b39713ad4c0492e6d2b4bb Mon Sep 17 00:00:00 2001 From: nixo Date: Sun, 19 May 2019 18:28:52 +0200 Subject: [PATCH] add restclient file to manually check APIs --- airsonic.rest | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 airsonic.rest diff --git a/airsonic.rest b/airsonic.rest new file mode 100644 index 0000000..c24b1c6 --- /dev/null +++ b/airsonic.rest @@ -0,0 +1,41 @@ +# -*- restclient -*- + +:url = http://localhost:8000/rest +:token = fc75eb09895ad4fe4909b81f48f9f4b4 +:username = nixo +:salt = 12b71ql5m8l8i72g5684hu0769 +:auth = ?username=:username&t=:token&s=:salt + +# Used to test connectivity with the server. Takes no extra parameters. +GET :url/ping + +# Get details about the software license. Takes no extra parameters. +GET :url/getLicense + +# Returns all configured top-level music folders. Takes no extra parameters. +GET :url/getMusicFolders:auth + +# getIndexes = Returns an indexed structure of all artists. +# getMusicDirectory = Returns a listing of all files in a music directory. Typically used to get list of albums for an artist, or list of songs for an album. + +# Returns all genres. +GET :url/getGenres:auth + +# Similar to getIndexes, but organizes music according to ID3 tags. +GET :url/getArtists:auth + +# Returns details for an artist, including a list of albums. This method organizes music according to ID3 tags. +GET :url/getArtist:auth&id=14d44067-99c2-4f77-b58b-138f0b6911fa + +# Returns details for an album, including a list of songs. This method organizes music according to ID3 tags. +GET :url/getAlbum:auth&id=d9522a40-887f-4a15-a59f-0d3bccfa908f + +# Returns details for a song. +GET :url/getSong:auth&id=df5937fd-d79b-40b5-bf14-8c29c54e1bdb + +# Returns a cover art image. +GET :url/getCoverArt:auth&id=7167f941-efef-49dd-a54f-8e2d41e3f4a7 + +# Stream +GET :url/stream:auth&id=df5937fd-d79b-40b5-bf14-8c29c54e1bdb +