User Destroy

입력한 primary key에 해당하는 MyUser object를 삭제합니다.

URL

/member/<pk>/

Method

DELETE

Success Response

HTTP Status code
204

Content

None

Error response

Not Found error

HTTP Status code
401

Content

# 로그인 되어 있지 않은 채 또는 로그아웃 된 상태로 접근, 지워진 pk 에 접근 
{
    "detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}

Not Found error

HTTP Status code
404

Content

# 존재하지 않는 유저에 접근 
{
    "detail": "찾을 수 없습니다."
}

forbidden error

HTTP Status code
403

Content

# 로그인 유저와 다른 pk 로 접근한 경
{
    "detail": "다른 사용자에 대한 요청은 수행할 수 없습니다."
}

results matching ""

    No results matching ""