-
Notifications
You must be signed in to change notification settings - Fork 1
1 1. 회원가입
Donghoon Lee edited this page Nov 2, 2021
·
1 revision
메소드 | 경로 | 짧은 설명 |
---|---|---|
POST | http://ServerAddress:3000/auth/# | 회원가입 |
불필요
body : json
변수 | 타입 | 설명 |
---|---|---|
"email" | STRING | 사용자 이메일 |
"password" | STRING | 사용자 비밀번호 |
Body
{
"email" : "test@naver.com",
"password" : "1234",
}
Success: 회원가입 성공 (200)
{
token,
user: { id, email }
}
fail: 입력값 미등록시 (400)
{
msg: "모든 필드를 채워주세요"
}
fail: 중복된 이메일 입력시 (400)
{
msg: "이미 가입된 유저가 존재합니다"
}