-
Notifications
You must be signed in to change notification settings - Fork 186
Restful interface
Tom Wallroth edited this page Jul 7, 2013
·
3 revisions
THIS INTERFACE IS NOT YET AVAILABLE!
params:
starts_with=STRING
calls:
GET /media → collection
params:
format="native"|"pls"|"m3u"
default "native"
calls:
/playlists/USERNAME
/playlists/USERNAME/PLAYLISTNAME
calls:
GET /users/NAME
calls:
login:
POST /sessions → LAST_GUI_STATE
logout:
DELETE /sessions
save status:
PUT /sessions/save
calls:
config incl. useroptions:
GET /config/USERNAME
params:
q=STRING
fields="playlist"|"collection"|"track"
calls:
GET /search
calls:
GET /art/
params:*
TODO!
request:
{
data: dataobj
}
response:
{
status: "success" | "error",
notifications: [ notification* ],
data: dataobj,
}
notification:
{
status: "success"|"error"|"warning" ,
message: STRING,
}
dataobj:
proxy | track | collection | playlist
proxy:
{
id: RESTURL,
type: "proxy" | "collection" | "track" | "playlist",
title: STRING,
label: STRING,
img: URL
}
collection:
proxy + {
list: [proxy*]
}
track:
proxy + {
audio: RELATIVE_URL,
format: "mp3"|"flac"|"ogg"|...
}
playlist:
proxy + {
owner: USER_URI,
tracks: [track*],
}
config:
{
audio_serve_url: URL,
audio_transcoder_url: URL,
user_options: { USER_OPTIONS ... }
}