Skip to content

로그인

ktyu edited this page Jan 2, 2019 · 6 revisions

로그인

메소드 경로 설명
POST /users/login 로그인

요청 헤더

Content-Type: application/json

요청바디

{
	"email" : "[email protected]",
	"password" : "123123"
}

응답 바디

로그인 성공

{
    "status": 200,
    "message": "로그인 성공",
    "data": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJBcHBKYW0tU21hdGNoaW5nIiwidXNlcl9pZHgiOjF9.fCWrWlla6WGjFeLxOLDTtOO3sB8_mpFHt6kzdvvprFM"
    }
}

로그인 실패

{
    "status": 400,
    "message": "로그인 실패",
    "data": null
}

서버 내부 에러

{
    "status": 500,
    "message": "서버 내부 에러",
    "data": null
}

데이터베이스 에러

{
    "status": 600,
    "message": "데이터베이스 에러",
    "data": null
}
Clone this wiki locally