Examples

PATCH /api/v2/comments/26/like
{}
200
{
  "data": {
    "id": "26",
    "type": "comments",
    "links": {
      "self": "/api/v2/comments/26"
    },
    "attributes": {
      "body": "comment text",
      "created-at": "2017-08-29T10:45:59.820+08:00",
      "body-updated-at": "2017-08-29T10:45:59.817+08:00",
      "updated-at": "2017-08-29T10:45:59.820+08:00",
      "anonymize": false,
      "likes-count": 1,
      "is-liked": true,
      "revisions-count": 0,
      "has-parent": false
    },
    "relationships": {
      "attachment": {
        "links": {
          "self": "/api/v2/comments/26/relationships/attachment",
          "related": "/api/v2/comments/26/attachment"
        }
      },
      "commentable": {
        "links": {
          "self": "/api/v2/comments/26/relationships/commentable",
          "related": "/api/v2/comments/26/commentable"
        }
      },
      "commenter": {
        "links": {
          "self": "/api/v2/comments/26/relationships/commenter",
          "related": "/api/v2/comments/26/commenter"
        }
      },
      "parent": {
        "links": {
          "self": "/api/v2/comments/26/relationships/parent",
          "related": "/api/v2/comments/26/parent"
        }
      },
      "children": {
        "links": {
          "self": "/api/v2/comments/26/relationships/children",
          "related": "/api/v2/comments/26/children"
        }
      },
      "commentable-insights": {
        "links": {
          "self": "/api/v2/comments/26/relationships/commentable-insights",
          "related": "/api/v2/comments/26/commentable-insights"
        }
      },
      "commentable-entities": {
        "links": {
          "self": "/api/v2/comments/26/relationships/commentable-entities",
          "related": "/api/v2/comments/26/commentable-entities"
        }
      },
      "comment-likes": {
        "links": {
          "self": "/api/v2/comments/26/relationships/comment-likes",
          "related": "/api/v2/comments/26/comment-likes"
        }
      },
      "comment-revisions": {
        "links": {
          "self": "/api/v2/comments/26/relationships/comment-revisions",
          "related": "/api/v2/comments/26/comment-revisions"
        }
      }
    }
  }
}