{
  "opencollection": "1.0.0",
  "info": {
    "name": "diaspora* Aspects Likes API",
    "version": "1"
  },
  "items": [
    {
      "info": {
        "name": "Likes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get likes for a comment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{pod}/api/v1/posts/:post_guid/comments/:comment_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              },
              {
                "name": "comment_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the comment."
              }
            ]
          },
          "docs": "Required API scope: the one which gives read access to the post (public:read for public posts and private:read for private posts)."
        },
        {
          "info": {
            "name": "Like a comment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{pod}/api/v1/posts/:post_guid/comments/:comment_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              },
              {
                "name": "comment_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the comment."
              }
            ]
          },
          "docs": "Required API scope: interactions. Read access to the post must be present too (public:read for public posts and private:read for private posts)."
        },
        {
          "info": {
            "name": "Unlike a comment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{pod}/api/v1/posts/:post_guid/comments/:comment_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              },
              {
                "name": "comment_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the comment."
              }
            ]
          },
          "docs": "Required API scope: interactions. Read access to the post must be present too (public:read for public posts and private:read for private posts)."
        },
        {
          "info": {
            "name": "Get likes for a post",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{pod}/api/v1/posts/:post_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              }
            ]
          },
          "docs": "Required API scope: the one which gives read access to the post (public:read for public posts and private:read for private posts)."
        },
        {
          "info": {
            "name": "Like a post",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{pod}/api/v1/posts/:post_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              }
            ]
          },
          "docs": "Required API scope: interactions. Read access to the post must be present too (public:read for public posts and private:read for private posts)."
        },
        {
          "info": {
            "name": "Unlike a post",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{pod}/api/v1/posts/:post_guid/likes",
            "params": [
              {
                "name": "post_guid",
                "value": "",
                "type": "path",
                "description": "GUID of the post."
              }
            ]
          },
          "docs": "Required API scope: interactions. Read access to the post must be present too (public:read for public posts and private:read for private posts)."
        }
      ]
    }
  ],
  "bundled": true
}