회원가입 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
User signup API
Request
Method
POST
URL
/api/auth/signup
Header
Method |
Parameter |
Description |
Content-Type |
application/json |
|
Body
Field |
Type |
Description |
Required |
email |
String |
이메일 |
Y |
password |
String |
비밀번호 |
N |
nickname |
String |
별명 |
Y |
phoneNumber |
String |
휴대폰 번호 |
Y |
birthday |
String |
생년월일 'YYYY-MM-DD' |
Y |
social |
String |
로그인 타입(LOGIN, GOOGLE) |
Y |
region |
String |
국가 |
Y |
language |
String |
언어 |
Y |
deviceId |
String |
기기 uuid |
Y |
{
"email" : "[email protected]",
"password" : "Smilegate97",
"nickname" : "darom",
"phoneNumber" : "010-1111-4444",
"birthday" : "1997-05-19",
"social" : "LOGIN",
"region" : "82",
"language" : "KR",
"deviceId" : "1234567890123456"
}
Response
Header
Method |
Parameter |
Description |
statusCode |
{statusCode} |
|
Body
Field |
Type |
Description |
status |
int |
상태 코드 |
message |
String |
status 메시지 |
email |
String |
이메일 |
nickname |
String |
별명 |
phoneNumber |
String |
휴대폰 번호 |
birthday |
String |
생년월일 'YYYY-MM-DD' |
social |
String |
로그인 타입(LOGIN, GOOGLE) |
region |
String |
국가 |
language |
String |
언어 |
SUCCESS example
{
"status": 201,
"message": "회원 가입 성공",
"data":{
"userId": "1643015086508628842",
"email": "[email protected]",
"nickname": "darom",
"phoneNumber": "010-1111-4444",
"birthday": "1997-05-19",
"social": "LOGIN",
"region": "82",
"language": "KR"
}
}
Error Code
Status |
Code |
Error Messsage |
200 |
400 |
MISMATCH_PASSWORD |
200 |
400 |
LEAVE_USER |
200 |
409 |
DUPLICATE_PHONE_NUMBER |
500 |
500 |
Server Error |
FAIL example
{
"status": 409,
"message": "이미 가입된 전화번호입니다.",
"data":{
"userId": null,
"email": null,
"nickname": null,
"phoneNumber": null,
"birthday": null,
"social": null,
"region": null,
"language": null
}
}
{
"timestamp": "2022-02-03T11:33:41.5330191",
"status": 500,
"error": "SERVER_ERROR",
"code": "INTERNAL_SERVER_ERROR",
"message": "서버 오류입니다."
}