Comments
List Comments
GET /api/comments
Parameters: (optional)
- project_id - Project ID
- task_id - Task ID
Response:
- id - Comment ID
- comment - Comment text
- file_path - Path to file (if attached)
- file_name - Name of file (if attached)
- project_id - Project ID
- task_id - Task ID
- date_created - Date created
- user_id - Creator user ID
- replies - Replies
- id = Reply ID
- reply = Reply text
- date_created = Date created
- user_id = Creator user ID
Get Comment
GET /api/comment
Parameters:
- id - Comment ID
Response:
- id - Comment ID
- comment - Comment text
- file_path - Path to file (if attached)
- file_name - Name of file (if attached)
- project_id - Project ID
- task_id - Task ID
- date_created - Date created
- user_id - Creator user ID
- replies - Replies
- id = Reply ID
- reply = Reply text
- date_created = Date created
- user_id = Creator user ID
Create Comment
POST /api/comments
Parameters:
- comment - Comment text
- project_id - Project ID
- task_id - Task ID
- date_created - Date created
- user_id - Creator user ID
Response:
- id - Comment ID
Delete Comment
DELETE /api/comment/id/:id
Response:
- message - Deleted successfully
Create Reply
POST /api/replies
Parameters:
- reply - Reply text
- comment_id - Project ID
- date_created - Date created
- user_id - Creator user ID
Response:
- id - Reply ID
Delete Reply
DELETE /api/reply/id/:id
Response:
- message - Deleted successfully




