댓글 삭제
프로젝트 페이지의 게시물에 있는 댓글을 삭제하는 API입니다
Last updated
Was this helpful?
프로젝트 페이지의 게시물에 있는 댓글을 삭제하는 API입니다
Last updated
Was this helpful?
Was this helpful?
DELETE
/projects/:projectId/comments/:commentId
projectId: 해당 댓글이 작성된 (프로젝트 페이지의) 게시물 고유 id
commentId: 삭제할 댓글의 고유 id
HTTP Status code : 204 No Content
Response Body는 따로 없습니다.
HTTP Status code : 400 Bad Request
{
"id": 26,
"content": "example comment",
"authorEmail": "example@ewhain.net",
"createdDate": "2020-11-16T17:04:01",
"modifiedDate": "2020-11-16T17:04:10"
}
고유 댓글 id의 존재 유무와 상관없이 해당 id의 프로젝트 게시물이 없는 경우
{
"status": 400,
"message": "존재하지 않는 프로젝트입니다. "
}
해당 id의 프로젝트 게시물은 있으나 해당 id의 댓글은 존재하지 않는 경우
{
"status": 400,
"message": "존재하지 않는 댓글입니다. "
}
고유 id의 프로젝트와 고유 id의 댓글이 존재하지만 잘못된 프로젝트와 연관되어 호출된 경우
{
"status": 400,
"message": "잘못된 경로로 접근했습니다. "
}
name
type
description
status
number
HTTP status code(에러 상황에 따라 변할 수 있습니다. )
message
string
에러 메시지(메시지 내용은 에러 상황에 따라 변할 수 있습니다. )