Overview
Reactions are essentially a way for a user to “Like” an item.
List reactions
Endpoint
GET https://api.dropmark.com/v1/items/:item_id/reactions
Response
Status: 200 OK
[
{
"id": 100,
"item_id": 1337,
"user_id": 1,
"username": "jane",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"name": "Jane Doe",
"email": "jane@example.com",
"created_at": "2016-08-16T17:42:20Z",
"updated_at": "2016-08-16T17:42:20Z"
}
]
Create a reaction
Endpoint
POST https://api.dropmark.com/v1/items/:item_id/reactions
Response
Status: 201 Created
{
"id": 100,
"item_id": 1337,
"user_id": 1,
"username": "jane",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"name": "Jane Doe",
"email": "jane@example.com",
"created_at": "2016-08-16T17:42:20Z",
"updated_at": "2016-08-16T17:42:20Z"
}
Delete a reaction
Endpoint
DELETE https://api.dropmark.com/v1/reactions/:reaction_id
Response
Status: 200 OK
{
"code": "deleted",
"message": "Reaction deleted"
}