Skip to content

회원가입

HwangJaeSuk edited this page Sep 2, 2019 · 13 revisions

회원가입(/user/signup)

Request

URL

[POST] ~/user/signup

Header

메소드 파라미터 설명
Content-Type application/json

Body

변수 타입 설명
userId String 아이디
name String 이름
nickname String 닉네임
password String 비밀번호
{
	"userId": "babycloset95",
	"name": "황재석",
	"nickname": "바나나킥",
	"password": "abc123",
}

Response

Body

SUCCESS

{
    "status": 200,
    "success": true,
    "message": "회원가입 성공"
}

FAIL : 아이디, 이름, 닉네임, 비밀번호를 입력하지 않았을 때

{
    "status": 400,
    "success": false,
    "message": "필요한 값이 없습니다."
}

FAIL : 이미 존재하는 id일 때

{
    "status": 400,
    "success": false,
    "message": "존재하는 유저 id입니다."
}

FAIL : 이미 존재하는 닉네임일 때

{
    "status": 400,
    "success": false,
    "message": "존재하는 유저 닉네임입니다."
}

FAIL : 서버 내부 에러의 경우

{
    "status": 600,
    "success": false,
    "message": "회원가입 실패"
}
Clone this wiki locally