Api::V1::CommentsController API

should not hidden remove comments that still have non removed descendants

DELETE /api/v1/comments/:comment_sibling_id

Request

Headers

Accept: application/json
X-Api-Token: VxUz5sM__VFGCjnSrqEAexXJz41-zsuytw
X-Api-Email: user-200@example.com

Route

DELETE /api/v1/comments/67

Body

{}

cURL

curl "http://localhost:3000/api/v1/comments/67" -d '{}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: VxUz5sM__VFGCjnSrqEAexXJz41-zsuytw" \
	-H "X-Api-Email: user-200@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Status

204 No Content