From a8b9fc00171d7081daee45901c6de3c32056c6d2 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 12 Jun 2022 06:20:55 -0400 Subject: [PATCH] docs: document list feeds api Signed-off-by: Eric Callahan --- docs/web_api.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/web_api.md b/docs/web_api.md index 5246b47..90b46ef 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -2860,6 +2860,34 @@ The `entry_id` of the dismissed entry: } ``` +#### List announcement feeds + +HTTP request: +```http +GET /server/announcements/feeds +``` +JSON-RPC request: +```json +{ + "jsonrpc": "2.0", + "method": "server.announcements.feeds", + "id": 4654 +} +``` + +Returns: + +A list of feeds the instance of Moonraker is subscribed to. + +```json +{ + "feeds": [ + "moonraker", + "klipper" + ] +} +``` + #### Add an announcement feed Specifies a new feed for Moonraker's `announcements` component to query in addition to `moonraker`, `klipper`, and feeds configured in