diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-30 09:11:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-30 09:11:34 +0200 |
commit | c180123e07c31ff45194e1645a4b90c3fd039650 (patch) | |
tree | c3d99afa159a54361504dfc76835086c4197d89d /api.md | |
parent | 7af66484702fa99ed30a6b498fca0066207d4885 (diff) | |
download | jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar.bz2 jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar.zst |
update api
Diffstat (limited to 'api.md')
-rw-r--r-- | api.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -26,13 +26,15 @@ seconds). The Response contains the session cookie as a string in JSON. ## GET* `/n/<id>` -Request a library node (either a directory or item). See -[`common/src/api.rs`](./common/src/api.rs) +Request a library node (either a directory or item). Returns it as `NodePublic`. -## GET* `/n/<id>/asset?<role>` +## GET* `/n/<id>/asset?<role>&<width>` -Where `role` is one of `backdrop` or `poster`. Returns assets for a node. +Where `role` is one of `backdrop` or `poster` and `width` is the width of the +resolution you want to image to be in. The actual returned resolution must not +be exactly what you requested. Returns assets for a node. -## GET* `/stream/<id>?tracks=<track-ids>&webm=<bool>` +## GET* `/stream/<id>?<format>&<abr>&<vbr>&<index>&<tracks>` -Responds with the stream directly or a redirect to the actual source. +Responds with the stream directly or a redirect to the actual source in case of +federation. |