Request
DELETE /api/v1/comments/{commentId}
Response
200 Success
{
message: "댓글 삭제 성공",
status: 200,
data: {
commentId: 0,
createdAt: "2022-07-26T11:26:24",
isDeleted: true,
likeCount: 0,//좋아요 갯수
isLiked: false,//좋아요 여부
childCount: 0//자식댓글 갯수
}
}
400 Bad Request - 해당 id의 댓글이 존재하지 않을 시
{
message: "댓글 삭제 실패 - 해당 댓글은 존재하지 않습니다.",
status: 400,
code: "미정"
}
403 Forbidden - 유저가 로그인 되어있지 않거나 유저의 권한이 없을 시
{
message: "댓글 삭제 실패 - 권한이 없습니다.",
status: 403,
code: "미정"
}
500 Server Error - 서버 내부 문제. 발생 시 비상.
{
message: "서버 에러",
status: 500,
code: "미정"
}