Admin API: GET /api/pleroma/admin/stats to get status count by visibility scope
This commit is contained in:
parent
d240ce41b5
commit
7ad5c51f23
11 changed files with 321 additions and 1 deletions
|
|
@ -939,3 +939,20 @@ Loads json generated from `config/descriptions.exs`.
|
|||
- Params:
|
||||
- `nicknames`
|
||||
- Response: Array of user nicknames
|
||||
|
||||
## `GET /api/pleroma/admin/stats`
|
||||
|
||||
### Stats
|
||||
|
||||
- Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"status_visibility": {
|
||||
"direct": 739,
|
||||
"private": 9,
|
||||
"public": 17,
|
||||
"unlisted": 14
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue