GET /api/messages/:message_id/likes/:comment_id/likes/:id

show an existing like on a message

GET /api/messages/:message_id/comments/:comment_id/likes/:comment_id/likes/:id

show an existing like on a comment

Success Response Code: 200

Params

Param name Description
message_id
required

id for message


Value: Must be a Integer
comment_id
optional

id for comment


Value: Must be a Integer
id
required

id for like


Value: Must be a Integer

Response Fields

like like object Like
id id of the like Integer
user user who created the like User
created_at time when the like was created DateTime
unlikable whether or not the viewing user can unlike the object Boolean

Example Curl Commands

curl -X GET -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/messages/318/likes/16.json
curl -X GET -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/messages/426/comments/86/likes/61.json

Examples

GET 
200
{
  "like": {
    "id": 2,
    "user": {
      "id": 56,
      "name": "J'øhn51 D'øe51",
      "url": "https://socialcast.socialcast.test/users/56-j%C3%B8hn51d%C3%B8e51"
    },
    "created_at": "2017-04-22T20:15:40-07:00",
    "unlikable": true
  }
}