Document the new endpoint

This commit is contained in:
Mark Felder 2021-02-18 14:47:50 -06:00
parent 8d7d6d85b4
commit beb7d4dcf0
2 changed files with 25 additions and 0 deletions

View File

@ -63,6 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
<details> <details>
<summary>API Changes</summary> <summary>API Changes</summary>
- Admin API: (`GET /api/pleroma/admin/users`) filter users by `unconfirmed` status and `actor_type`. - Admin API: (`GET /api/pleroma/admin/users`) filter users by `unconfirmed` status and `actor_type`.
- Admin API: Add endpoint to provide a list of tabs for rendering the AdminFE Settings config section (`GET /api/pleroma/admin/config/tabs`)
- Pleroma API: `GET /api/v2/pleroma/chats` added. It is exactly like `GET /api/v1/pleroma/chats` except supports pagination. - Pleroma API: `GET /api/v2/pleroma/chats` added. It is exactly like `GET /api/v1/pleroma/chats` except supports pagination.
- Pleroma API: Add `idempotency_key` to the chat message entity that can be used for optimistic message sending. - Pleroma API: Add `idempotency_key` to the chat message entity that can be used for optimistic message sending.
- Pleroma API: (`GET /api/v1/pleroma/federation_status`) Add a way to get a list of unreachable instances. - Pleroma API: (`GET /api/v1/pleroma/federation_status`) Add a way to get a list of unreachable instances.

View File

@ -1122,6 +1122,30 @@ Loads json generated from `config/descriptions.exs`.
}] }]
``` ```
## ` GET /api/pleroma/admin/config/tabs`
### Get JSON formatted list of ConfigDB setting routes for AdminFE
Also generated from `config/descriptions.exs`.
- Params: none
- Response:
```json
[
{
"label": "ActivityPub", // Text label of the setting
"path": "activity-pub" // URL path for rendering that group of settings
},
{
"label": "Authentication",
"path": "authentication"
},
{
"label": "Captcha",
"path": "captcha"
}
```
## `GET /api/pleroma/admin/moderation_log` ## `GET /api/pleroma/admin/moderation_log`
### Get moderation log ### Get moderation log