회원가입 API (/users/signup)

메서드 요청 URL
POST http://{SERVER_URL}/service/api/service/users/signup

Request Header

파라미터 타입 필수여부 설명
Content-Type String 필수 application/json

Role Requirement

Request Elements

파라미터 타입 필수여부 설명 제약사항
username String 필수 사용자 ID (로그인용) 100자 이하
nickname String 필수 사용자 닉네임 100자 이하
email String 필수 사용자 이메일 255자 이하
password String 필수 비밀번호 255자 이하
role-id String 필수 사용자 권한 “CUSTOMER”,“OWNER”

요청 예시

POST /api/service/users/signup
Content-Type: application/json

{
    "username": "userId",
    "nickname": "뉴유저",
    "email": "[email protected]",
    "password": "password",
    "role-id": "customerId"
}

Response Elements

필드 타입 필수여부 설명
message String 필수 회원가입 완료 메시지
code Integer 필수
data Object

응답 예시

{
    "message": "뉴유저님의 회원가입이 완료되었습니다.",
    "code": 200,
    "data": null
}