GET : /api/designnest/v1/projects/{projectID}/comments
projectID : the ID of the current project
{
"code" : 1 ,
"message" : "" ,
"data" : {
"list" : {
"paginate" : {
"total" : 0 ,
"has_more_page" : 0 / 1
} ,
"data" : [
{
"parent": {
"id": 0,
"created_time": "",
"content": "",
"user": {
"name": "",
"avatar": "",
"is_designer": 0
}
},
"children" : [
{
"id": 0,
"created_time": "",
"content": "",
"user": {
"name": "",
"avatar": "",
"is_designer": 0
}
},
...
]
} ,
...
]
}
}
}
POST : /api/designnest/v1/projects/{projectID}/comments
projectID : the ID of the current project
{
"project" : {
"comment" : {
"parent_comment_id" : 0 ,
"content" : ''
}
}
}
title : The parent ID of the comment, ( by default parent_comment_id = 0 , if it's a first-level comment, it is nullable)
content : Content of comment
{
"code" : 1 ,
"message" : "" ,
"data" : [
"id" => 0 ,
]
}
PATCH : /api/designnest/v1/projects/{projectID}/comments/{commentID}
projectID : the ID of the current project
commentID : the ID of the current comment
{
"code" : 1 ,
"message" : "" ,
"data" : []
}