support for with_relationships parameter

in /api/v1/mutes and /api/v1/accounts/:id endpoints
This commit is contained in:
Alexander Strizhakov 2021-01-29 08:41:21 +03:00
commit c369d2b930
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 155 additions and 11 deletions

View file

@ -54,6 +54,13 @@ The `id` parameter can also be the `nickname` of the user. This only works in th
- `/api/v1/accounts/:id`
- `/api/v1/accounts/:id/statuses`
Endpoints which accept `with_relationships` parameter:
- `/api/v1/accounts/:id`
- `/api/v1/accounts/:id/followers`
- `/api/v1/accounts/:id/following`
- `/api/v1/mutes`
Has these additional fields under the `pleroma` object:
- `ap_id`: nullable URL string, ActivityPub id of the user