{ "opencollection": "1.0.0", "info": { "name": "diaspora* Aspects Comments API", "version": "1" }, "items": [ { "info": { "name": "Comments", "type": "folder" }, "items": [ { "info": { "name": "Get comments for a post", "type": "http" }, "http": { "method": "GET", "url": "https://{pod}/api/v1/posts/:post_guid/comments", "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": "Add a comment to a post", "type": "http" }, "http": { "method": "POST", "url": "https://{pod}/api/v1/posts/:post_guid/comments", "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": "Delete a comment", "type": "http" }, "http": { "method": "DELETE", "url": "https://{pod}/api/v1/posts/:post_guid/comments/:comment_guid", "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": "Report a comment", "type": "http" }, "http": { "method": "POST", "url": "https://{pod}/api/v1/posts/:post_guid/comments/:comment_guid/report", "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)." } ] } ], "bundled": true }