Open RTyy opened 7 years ago
Any comment could be deleted only if it doesn't have any answers (children comments).
Request:
"id", comment_id, # id of the comment that should be updated,
{ "user_id": user_id, }
curl -i -X DELETE -H "Content-Type: application/json" -d "{delete_comment_json_data}" http://local.server.com/api/comment/{id}/
Responses:
On Success Status Code: 200
{ }
On Error Status Code: 400, 403, 404
{ "error": error_title, "data_errors": { "var_name": error_code, ... } }
1h
Any comment could be deleted only if it doesn't have any answers (children comments).
Request:
Responses:
On Success Status Code: 200
On Error Status Code: 400, 403, 404