Comments

Description

The Comments resource provides the list of comments for a specific discussion.

Operations

GET - Read discussion comments.

Produces - Specify a returned data format using the Accept header.
Parameters
Name Type Description
did path The Id of the discussion being requested
Status Codes
  • 200  -  Upon a successful read.
  • 404  -  If the requested discussion is not found.

POST - Add comment(s) to a discussion, or update existing comment(s). Comments to be updated are distinguished from comments to be added to the discussion by the presence of an id on the comment.

Produces - Specify a returned data format using the Accept header.
Consumes - Specify the incoming data format using the Content-Type header.
Parameters
Name Type Description
did path The Id of the discussion when doing an update
body request-body The comments to be added or updated.
Status Codes
  • 201  -  The creation of the comment was successful.
  • 204  -  The update of the comment was successful.
  • 404  -  The discussion for the comments was not found.

Example Requests

Create Comment How to add a comment to a discussion.
Read Comments How to read the comments of a discussion.

Change Language

Feedback

Sending...

Feedback was sent.

Can't send feedback. Retry in 5 seconds.