Comments /post/{post-id}/comments

The comments attached to a post.

Reading

GET /post/{post-id}/comments HTTP/1.1
Host: localhost:3000

Permissions

  • The applied permissions to retrieve the parent post are required.

Fields

An array of Comment objects attached to the parent post and whose its retrieve permissions are granted.

Publishing

POST /post/{post-id}/comments HTTP/1.1
Host: localhost:3000

Permissions

  • An access token (pointing to an user) with publish_speaking permission is required.
  • The applied permissions to retrieve the parent post are required.

Fields

Name Description Type

message

The message of the comment.

string

Response

If successful :

{
    "success" : true,
    "_id" : "..."
}

Otherwise a relevant error message will be returned.

Updating

You can update comments by using the /comment edge.

Deleting

You can delete comments by using the /comment edge.