diff options
author | feld <feld@feld.me> | 2021-02-03 14:21:57 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2021-02-03 14:21:57 +0000 |
commit | 8d2ea9540220178098762c103ab4fad7a8bd2edd (patch) | |
tree | 5e5aca369361d5756f05360bad159ec212dd1243 /docs/development | |
parent | 5ee9cbf0174a39378d33feab25776daf9154ce6b (diff) | |
parent | d4158e8bf01af3f998a0295668bada9821c4fdc7 (diff) | |
download | pleroma-8d2ea9540220178098762c103ab4fad7a8bd2edd.tar.gz |
Merge branch 'feature/2438-users-posts-total-count' into 'develop'
Feature/2438 users/instances posts total count
Closes #2438
See merge request pleroma/pleroma!3270
Diffstat (limited to 'docs/development')
-rw-r--r-- | docs/development/API/admin_api.md | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/docs/development/API/admin_api.md b/docs/development/API/admin_api.md index 5253dc668..04a181401 100644 --- a/docs/development/API/admin_api.md +++ b/docs/development/API/admin_api.md @@ -287,7 +287,18 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret - *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 + - On success: JSON, where: + - `total`: total count of the statuses for the user + - `activities`: list of the statuses for the user + +```json +{ + "total" : 1, + "activities": [ + // activities list + ] +} +``` ## `GET /api/pleroma/admin/instances/:instance/statuses` @@ -300,7 +311,18 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret - *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 + - On success: JSON, where: + - `total`: total count of the statuses for the instance + - `activities`: list of the statuses for the instance + +```json +{ + "total" : 1, + "activities": [ + // activities list + ] +} +``` ## `GET /api/pleroma/admin/statuses` |