User 로그아웃
하나의 유저 객체를 로그아웃 시킵니다.
METHOD & URL
POST /user/logout/
Permission
로그인 된 유저만
Request
Header
Authorization: 유저 인증 정보
Success Response
HTTP Response
200 OK
Content
{
"detail": "로그아웃 되었습니다."
}
Error Response
- 로그인되지 않은 유저를 로그아웃하려는 경우
또는
- 요청에 인증정보를 전달하지 않은 경우
404 Not Found
{
"detail": "찾을 수 없습니다."
}
- 잘못된 토큰값을 전달한 경우
401 Unauthorized
{
"detail": "토큰이 유효하지 않습니다."
}
- 잘못된 요청이 전달된 경우
405 Method Not Allowed
{
"detail": "메소드(Method) \"요청\"는 허용되지 않습니다."
}