docs: document list feeds api

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-06-12 06:20:55 -04:00
parent d19471fd4d
commit a8b9fc0017
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 28 additions and 0 deletions

View File

@ -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