Likes
One like, flipped and counted in the same transaction.
Liking has a scope of its own because it is not the same act as replying: one leaves words under somebody's name and the other does not. An integration that only wants to mark what it liked does not need to be able to speak for its owner.
/api/ v1/ likesTurns the like over and says which side came up. It is not a PUT and a DELETE because the database has one statement that flips and counts in the same transaction; faking two verbs would mean reading the state before writing the opposite, and two quick taps would race each other.
Body
| Field | Type | Notes |
|---|---|---|
onrequired | string | review, list, screenshot, diary, content_comment or profile_comment. |
idrequired | string | The id of what is being liked. |
Example response
{
"data": { "on": "review", "id": "...", "liked": true, "like_count": 12 }
}