65 lines
2.0 KiB
ReStructuredText
65 lines
2.0 KiB
ReStructuredText
# -*- restclient -*-
|
|
|
|
:url = http://localhost:8000/rest
|
|
:token = aca7a0d5412138863f361df08e738378
|
|
:username = nixo
|
|
:salt = 2ob56atgdr8htkpdg5478c6tfj
|
|
:auth = ?u=: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
|
|
|
|
# Get playlists
|
|
GET :url/getPlaylists:auth
|
|
|
|
# Get single playlist
|
|
GET :url/getPlaylist:auth&id=a2df9320-4775-40a5-9830-8960f3eb9203
|
|
|
|
# Get not owned playlist
|
|
GET :url/getPlaylist:auth&id=799f5074-5db2-4daa-b449-9677d0c7744c
|
|
|
|
# Delete not owned playlist
|
|
GET :url/deletePlaylist:auth&id=799f5074-5db2-4daa-b449-9677d0c7744c
|
|
|
|
# Update not owned playlist
|
|
GET :url/updatePlaylist:auth&playlistId=799f5074-5db2-4daa-b449-9677d0c7744c
|
|
|
|
# Update owned playlist
|
|
GET :url/updatePlaylist:auth&playlistId=a2df9320-4775-40a5-9830-8960f3eb9203&name=nuovo
|
|
|
|
# Delete owned playlist
|
|
GET :url/deletePlaylist:auth&id=a2df9320-4775-40a5-9830-8960f3eb9203
|
|
|
|
|
|
|