summaryrefslogtreecommitdiff
path: root/docs/API
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-11-14 08:47:10 +0000
committerrinpatch <rinpatch@sdf.org>2019-11-14 08:47:10 +0000
commit6085c71bd17e2b676e0820bf3fd93f81a1902ac3 (patch)
treea92e6aaa3fd96150d54d04309558c7cd5cae7416 /docs/API
parentf74bb1d0fc123ba8616d81a80dcf5d64b25aa4ed (diff)
parent7a322713c33e8ef2fdc326f9e35d1fcbe7590c93 (diff)
downloadpleroma-6085c71bd17e2b676e0820bf3fd93f81a1902ac3.tar.gz
pleroma-6085c71bd17e2b676e0820bf3fd93f81a1902ac3.zip
Merge branch 'reactions' into 'develop'
Emoji Reactions See merge request pleroma/pleroma!1662
Diffstat (limited to 'docs/API')
-rw-r--r--docs/API/pleroma_api.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/API/pleroma_api.md b/docs/API/pleroma_api.md
index 6c326dc9b..ad16d027e 100644
--- a/docs/API/pleroma_api.md
+++ b/docs/API/pleroma_api.md
@@ -479,3 +479,35 @@ The status posting endpoint takes an additional parameter, `in_reply_to_conversa
* `artist`: the artist of the media playing [optional]
* `length`: the length of the media playing [optional]
* Response: the newly created media metadata entity representing the Listen activity
+
+# Emoji Reactions
+
+Emoji reactions work a lot like favourites do. They make it possible to react to a post with a single emoji character.
+
+## `POST /api/v1/pleroma/statuses/:id/react_with_emoji`
+### React to a post with a unicode emoji
+* Method: `POST`
+* Authentication: required
+* Params: `emoji`: A single character unicode emoji
+* Response: JSON, the status.
+
+## `POST /api/v1/pleroma/statuses/:id/unreact_with_emoji`
+### Remove a reaction to a post with a unicode emoji
+* Method: `POST`
+* Authentication: required
+* Params: `emoji`: A single character unicode emoji
+* Response: JSON, the status.
+
+## `GET /api/v1/pleroma/statuses/:id/emoji_reactions_by`
+### Get an object of emoji to account mappings with accounts that reacted to the post
+* Method: `GET`
+* Authentication: optional
+* Params: None
+* Response: JSON, a map of emoji to account list mappings.
+* Example Response:
+```json
+{
+ "😀" => [{"id" => "xyz.."...}, {"id" => "zyx..."}],
+ "🗡" => [{"id" => "abc..."}]
+}
+```