From 68b2f21fa130bfad9668f083795a367726ee7787 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 23 Aug 2023 22:29:25 +0700 Subject: [PATCH] [API] add sub/unsub docs --- mkdocs/docs/api/channel.md | 2 +- mkdocs/docs/api/playlist.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mkdocs/docs/api/channel.md b/mkdocs/docs/api/channel.md index 89623bc..ecdfbf9 100644 --- a/mkdocs/docs/api/channel.md +++ b/mkdocs/docs/api/channel.md @@ -7,7 +7,7 @@ Parameter: - filter: subscribed -Subscribe to a list of channels: +Subscribe/Unsubscribe to a list of channels: **POST** `/api/channel/` ```json { diff --git a/mkdocs/docs/api/playlist.md b/mkdocs/docs/api/playlist.md index c07ab74..ddb110b 100644 --- a/mkdocs/docs/api/playlist.md +++ b/mkdocs/docs/api/playlist.md @@ -3,6 +3,16 @@ ## Playlist List **GET** `/api/playlist/` +Subscribe/Unsubscribe to a list of playlists: +**POST** `/api/playlist/` +```json +{ + "data": [ + {"playlist_id": "PL96C35uN7xGLLeET0dOWaKHkAlPsrkcha", "playlist_subscribed": true} + ] +} +``` + ## Playlist Item **GET** `/api/playlist//`