Login
입력한 email과 password를 가진 사용자에 대한 Token object를 생성하고 반환합니다.
URL/member/login/
MethodPOST
Data Params
Key | Description | Type | Require |
---|---|---|---|
기존 등록된 email 을 입력 | String | True | |
password | 기존 등록된 password 를 입력 | String | True |
Success response
HTTP Status code200
Content
{
"token": "eeb72f8f9333c8ca69a1c9f66e3a3e3fa90b7b2f" # 임의의 token 값이 반환
}
Error response
Required error
HTTP Status code400
Content
# 항목 누락
{
"email": [
"이 항목을 채워주십시오."
],
"password": [
"이 항목을 채워주십시오."
]
}
# 일치하지 않는 email 또는 password
{
"non_field_errors": [
"email, password가 일치하지 않습니다"
]
}