Comment Destroy

삭제하고자 하는 Comment의 pk값을 받아서 Comment object를 delete합니다.

URL

/post/comment/<pk>/

Method

delete

Success Response

HTTP Status Code

204

content

None

Error response

Unauthorized error

HTTP Status code
401

Content

{
    "detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}

Request user is not comment's author error

HTTP Status code
403

Content

{
    "detail": "작성자만 요청할 수 있는 작업입니다."
}

Comment does not exist error

HTTP Status code 404

Content

{
    "detail": "찾을 수 없습니다."
}

results matching ""

    No results matching ""