Appearance
All comment-related endpoints are prefixed with /comment.
/comment
Endpoint: POST /comment/:cardId/create
POST /comment/:cardId/create
Description: Creates a new comment for a specific card.
Request Body:
{ "text": "Comment text", "boardId": "board_id" }
Response:
{ "_id": "comment_id", "text": "Comment text", "user": { "_id": "user_id", "name": "User Name" } }
Endpoint: GET /comment/:commentId
GET /comment/:commentId
Description: Retrieves a comment by its ID.
Endpoint: PUT /comment/:commentId
PUT /comment/:commentId
Description: Updates a comment by its ID.
{ "text": "Updated comment text" }
{ "_id": "comment_id", "text": "Updated comment text", "user": { "_id": "user_id", "name": "User Name" } }
Endpoint: DELETE /comment/:commentId
DELETE /comment/:commentId
Description: Deletes a comment by its ID.
{ "_id": "comment_id", "text": "Deleted comment text", "user": { "_id": "user_id", "name": "User Name" } }
totask Comment API Documentation
Comment Routes
All comment-related endpoints are prefixed with
/comment
.Create Comment
Endpoint:
POST /comment/:cardId/create
Description: Creates a new comment for a specific card.
Request Body:
Response:
Get Comment by ID
Endpoint:
GET /comment/:commentId
Description: Retrieves a comment by its ID.
Response:
Update Comment by ID
Endpoint:
PUT /comment/:commentId
Description: Updates a comment by its ID.
Request Body:
Response:
Delete Comment by ID
Endpoint:
DELETE /comment/:commentId
Description: Deletes a comment by its ID.
Response: