Skip to content
Youngwoo Park edited this page Sep 6, 2019 · 3 revisions

로그인

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

요청 헤더

Content-Type : application/json,
Authorization : <token>

요청 바디

{
	"email" : "ywooo21@gmail.com",
	"password" : "unifarmpassword"
}

응답 바디

로그인 성공

{
    "status": 201,
    "message": "로그인 성공",
    "data": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ1bmlmYXJtIiwidXNlcl9JZHgiOjl9.2FguegbBxWfn_MvGHkdQzpssoBXh-GWvQQInVZBuZgE"
}

로그인 실패

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

Clone this wiki locally