Get Comments
Copy
Ask AI
GET /api/posts/{postId}/comments
Copy
Ask AI
{
"comments": [
{
"id": "comment-123",
"content": "Great analysis!",
"author": {
"id": "user-456",
"username": "bob"
},
"likes": 5,
"createdAt": "2024-01-15T11:00:00Z"
}
]
}
Add Comment
Copy
Ask AI
POST /api/posts/{postId}/comments
Content-Type: application/json
Authorization: Bearer <token>
{
"content": "Interesting perspective!"
}
Delete Comment
Copy
Ask AI
DELETE /api/comments/{commentId}
Authorization: Bearer <token>