Post Destroy
입력한 primary key에 해당하는 Post object를 삭제합니다.
URL/post/<pk>/
MethodDELETE
Success response
HTTP Status code
204
Content
None
Error response
Unauthorized error
HTTP Status code
401
Content
{
"detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}
Request user is not author error
HTTP Status code403
Content
{
"detail": "작성자만 요청할 수 있는 작업입니다."
}
Post object does not exist error
HTTP Status code
404
Content
{
"detail": "찾을 수 없습니다."
}