restful API 참고자료: https://sanghaklee.tistory.com/57

Error Code

users

POST /users - 회원가입

→ /signup

UNKNOWN_ERROR = -1
SUCCESS = 0
NO_USER = 1
INCORRECT_PASSWORD = 2
USERNAME_ALREADY_EXIST = 3
USERNAME_INVALID = 4
PHONE_NUMBER_ALREADY_EXIST = 5
PHONE_NUMBER_INVALID = 6
NAME_INVALID = 7

req

{
	"username" : "jeky22",
	"password" : "wpcksdlWKdWKd!",
	"name": "이제찬",
	"phoneNumber": "01012341234"
}

res

{
	"result": SUCCESS,
	"detail": "sign up success"
}

{
	"result": PHONE_NUMBER_ALREADY_EXIST
	"detail": "phone number already exist"
}

...

GET /users - 중복체크

→ /users → /overlap/phone, /overlap/username

req

{
	"username" : "jeky22"
}

{
	"phone" : "01012341234"
}

res

{
	"result" : SUCCESS,
	"detail" : "no exist"
}

{
	"result" : USERNAME_ALREADY_EXIST,
	"detail" : "username already exist"
}

auth

POST /auth/login → 로그인