devRant API: Comments

A comment is a DevPlace comment on a post, identified by its integer id. Posting a comment on a
rant is on the Rants page; the widgets below read, edit, delete, and
vote on an existing comment. Log in below to enable the authenticated widgets.

GET /api/comments/{comment_id} Minimal role: Public

Get a comment

Fetch a single comment by id.

POST /api/comments/{comment_id} Minimal role: Member

Edit a comment

Replace a comment's text (owner only).

DELETE /api/comments/{comment_id} Minimal role: Member

Delete a comment

Soft-delete a comment (owner or admin).

POST /api/comments/{comment_id}/vote Minimal role: Member

Vote on a comment

Upvote (1), downvote (-1), or clear (0).