-
Notifications
You must be signed in to change notification settings - Fork 1
[POST] 회원가입
Gyunny edited this page Mar 15, 2021
·
11 revisions
메소드 | 경로 | 설명 |
---|---|---|
POST | /users/signup | 회원가입 |
{
"Content-Type": "application/json"
}
{
"nickName": "Gyunny",
"whaleName": "남궁고래",
"deviceToken": "sdsdsdsdadqwda"
}
{
"status": 200,
"message": "회원가입 성공입니다",
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWR4IjoxNCwiaWF0IjoxNjA3NjA3NzY5LCJleHAiOjE2MDc2MTg1NjksImlzcyI6InByYWlzZSJ9.Z8KojP0Zd6hnIYibBJ6DCRHSI4pazPBC7cTLVbm6WEg",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWR4IjoxNCwiaWF0IjoxNjA3NjA3NzY5LCJleHAiOjE2MDgyMTI1NjksImlzcyI6InByYWlzZSJ9.YmdeI8p6lDXOwEyTtHVjMM0w_o2GkerNpwOZvkShg0c"
}
}
- 데이터 누락
{
"status": 400,
"message": "필요한 값이 없습니다."
}
- 닉네임 중복
{
"status": 400,
"message": "닉네임이 존재합니다."
}
- 서버 에러
{
"status": 500,
"message": "서버 내부 에러입니다"
}