diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-02-29 11:34:50 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-02-29 11:34:50 +0300 |
commit | 814b275af7748df6bd11dfc6be1b4efce8d5ae70 (patch) | |
tree | e18b30dfa6eb020e593dbe1cc0e649da3e6ed394 /docs/API/admin_api.md | |
parent | 6b012ddd69aec0f85c22ad91dbb76e05f2edaf58 (diff) | |
parent | aad057a2d6baaa342f47f55d330f0731277dac06 (diff) | |
download | pleroma-814b275af7748df6bd11dfc6be1b4efce8d5ae70.tar.gz |
Merge branch 'develop' into gun
Diffstat (limited to 'docs/API/admin_api.md')
-rw-r--r-- | docs/API/admin_api.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/API/admin_api.md b/docs/API/admin_api.md index 4a448c1a5..e3f494795 100644 --- a/docs/API/admin_api.md +++ b/docs/API/admin_api.md @@ -260,10 +260,24 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret - `nickname` or `id` - *optional* `page_size`: number of statuses to return (default is `20`) - *optional* `godmode`: `true`/`false` – allows to see private statuses + - *optional* `with_reblogs`: `true`/`false` – allows to see reblogs (default is false) - Response: - On failure: `Not found` - On success: JSON array of user's latest statuses +## `GET /api/pleroma/admin/instances/:instance/statuses` + +### Retrive instance's latest statuses + +- Params: + - `instance`: instance name + - *optional* `page_size`: number of statuses to return (default is `20`) + - *optional* `godmode`: `true`/`false` – allows to see private statuses + - *optional* `with_reblogs`: `true`/`false` – allows to see reblogs (default is false) +- Response: + - On failure: `Not found` + - On success: JSON array of instance's latest statuses + ## `POST /api/pleroma/admin/relay` ### Follow a Relay @@ -941,3 +955,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 + } +} +``` |