Appearance
Users can comment on any post. Comments support threading via replies.
# List comments curl https://feedback.example.com/api/posts/{post_id}/comments # Add comment (auth required) curl -X POST -b cookies.txt \ -H "Content-Type: application/json" \ -d '{"content": "This would be great!"}' \ https://feedback.example.com/api/posts/{post_id}/comments # Reply to comment (set parent_id) curl -X POST -b cookies.txt \ -H "Content-Type: application/json" \ -d '{"content": "Agreed!", "parent_id": "comment-123"}' \ https://feedback.example.com/api/posts/{post_id}/comments # Delete comment (admin or creator) curl -X DELETE -b cookies.txt \ https://feedback.example.com/api/comments/{comment_id}
[ { "id": "abc", "content": "This would be great!", "created_by": "user@example.com", "parent_id": null, "children": [ { "id": "def", "content": "Agreed!", "created_by": "other@example.com", "parent_id": "abc", "children": [] } ] } ]
Comments & Threads
Users can comment on any post. Comments support threading via replies.
How It Works
API
Response Format