From 5d3a93b8bdee34f5c2d34079fdba6d090e3ad82b Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Wed, 21 Aug 2024 12:10:24 +0100 Subject: [PATCH] Add new HTTP API endpoints to the root description --- crates/librqbit/src/http_api.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index 49de3b4..eddd339 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -62,10 +62,14 @@ impl HttpApi { "GET /dht/stats": "DHT stats", "GET /dht/table": "DHT routing table", "GET /torrents": "List torrents", + "GET /torrents/playlist": "Generate M3U8 playlist for all files in all torrents", + "POST /torrents/resolve_magnet": "Resolve a magnet to torrent file bytes", "GET /torrents/{id_or_infohash}": "Torrent details", "GET /torrents/{id_or_infohash}/haves": "The bitfield of have pieces", + "GET /torrents/{id_or_infohash}/playlist": "Generate M3U8 playlist for this torrent", "GET /torrents/{id_or_infohash}/stats/v1": "Torrent stats", "GET /torrents/{id_or_infohash}/peer_stats": "Per peer stats", + "GET /torrents/{id_or_infohash}/stream/{file_idx}": "Stream a file. Accepts Range header to seek.", "POST /torrents/{id_or_infohash}/pause": "Pause torrent", "POST /torrents/{id_or_infohash}/start": "Resume torrent", "POST /torrents/{id_or_infohash}/forget": "Forget about the torrent, keep the files",