POSTS

(addReaction)

app/controllers/api/post_likes_controller.ts - addReaction

post/api/posts/{postId}/like

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

postIdstring required
Example:string

Post to set reaction

Request body

likeboolean

Example request

{
  "like": true
}

Response

Returns 200 (OK) as application/json

idnumber
titlestring
descriptionstring
totalnumber
createdAtstring
answernumber nullable
isLikedboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.