Skip to content

[POST] 회원가입

DongGeon0908 edited this page Oct 16, 2021 · 6 revisions

URL

METHOD URL ...
POST /api/member/sign 회원가입

Request Header

{
    "Content-Type": "application/json"
}

Request Body

{
	"email": "[email protected]",
	"password": "!oinging1234",
	"name": "김오잉",
	"nickname": "외쳐김오잉",
	"phoneNumber": "01012345678"
}

Response Success

{
  "status": 201,
  "message": "SIGN_SUCCESS",
  "data": null
}

Response Fail Because Invalid Exception

{
  "status": 400,
  "message": "INVALID_MEMBER_NAME"
}

{
  "status": 400,
  "message": "INVALID_MEMBER_EMAIL"
}

{
  "status": 400,
  "message": "INVALID_MEMBER_NICKNAME"
}

{
  "status": 400,
  "message": "INVALID_MEMBER_PHONE_NUMBER"
}

{
  "status": 400,
  "message": "INVALID_MEMBER_PASSWORD"
}

Response Fail Because Duplication Exception

{
  "status": 400,
  "message": "DUPLICATION_MEMBER_EMAIL"
}

{
  "status": 400,
  "message": "DUPLICATION_MEMBER_NICKNAME"
}

{
  "status": 400,
  "message": "DUPLICATION_MEMBER_PHONE_NUMBER"
}