aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Sampson <adrian@radbox.org>2013-02-10 20:58:36 -0800
committerAdrian Sampson <adrian@radbox.org>2013-02-10 20:58:36 -0800
commitcb9bfffb82ae64c448136835f7fad8d6c724a8e1 (patch)
treea9566832dc0330ed444ce8f6b36caffec9e0c0ed
parentDuration is better than length as a term. (diff)
downloadramc-spec-master.tar.xz
ramc-spec-master.zip
first stab at an album art endpointHEADmaster
-rw-r--r--spec.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec.md b/spec.md
index ffb282a..2a53f3a 100644
--- a/spec.md
+++ b/spec.md
@@ -355,6 +355,12 @@ Returns the data in the music file specified by `<id>` in the format given by `<
* The `Content-Type` HTTP header must be set to the [correct mimetype](#mimetypes).
* The `X-Content-Duration` HTTP header must be returned with the response, if duration metadata is available, containing the duration of the requested song in seconds as a floating point number.
+### <a name="art"></a> Album Art
+
+#### `GET /query/albums/<search query>/images/<index>.jpg`
+
+Retrieve the album art for an album matching the given search query. This endpoint accepts the same pagination and sorting parameters as the above album query API. It returns the image associated with the `<index>`th album in the result list.
+
### <a name="zip"></a> Zip Bundles
#### `POST /zip`