diff options
author | lain <lain@soykaf.club> | 2019-09-10 17:04:12 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-09-10 17:04:12 +0000 |
commit | d8b76c79f274c863e7464f62bf3b71aaa54174ce (patch) | |
tree | 1cdf7dfd21dbba69bf10d628e3e6c88bb27db207 /docs/api | |
parent | ceb2e09126a48fa341d5ff84371db49ae022bc12 (diff) | |
parent | 30f0cec49a39a2f17cd7fae89830bf0d7922a738 (diff) | |
download | pleroma-d8b76c79f274c863e7464f62bf3b71aaa54174ce.tar.gz |
Merge branch 'statuses-by-ids' into 'develop'
Add an endpoint to get multiple statuses by IDs
Closes #1240
See merge request pleroma/pleroma!1621
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/differences_in_mastoapi_responses.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 02f90f3e8..9b32baf3a 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -91,6 +91,20 @@ Additional parameters can be added to the JSON body/Form data: - `expires_in`: The number of seconds the posted activity should expire in. When a posted activity expires it will be deleted from the server, and a delete request for it will be federated. This needs to be longer than an hour. - `in_reply_to_conversation_id`: Will reply to a given conversation, addressing only the people who are part of the recipient set of that conversation. Sets the visibility to `direct`. +## GET `/api/v1/statuses` + +An endpoint to get multiple statuses by IDs. + +Required parameters: + +- `ids`: array of activity ids + +Usage example: `GET /api/v1/statuses/?ids[]=1&ids[]=2`. + +Returns: array of Status. + +The maximum number of statuses is limited to 100 per request. + ## PATCH `/api/v1/update_credentials` Additional parameters can be added to the JSON body/Form data: |