Skip to content

판매자 회원가입

UCLABgown edited this page Jan 31, 2025 · 6 revisions

판매자 회원가입

PATH

POST : /api/sellers

Request Header

Content-Type: application/json

Request Params

params Example Description Default
None None None None

Request Body

Key Example Description Default
username : String(Required) asd123 판매자 아이디 None
password : String(Required) 1234 판매자 비밀번호 None
confirm_password : String(Required) 1234 비밀번호 일치 확인 None
company_name : String(Required) 컴퓨존 판매자 업체이름 None
email : String(Required) [email protected] 판매자 이메일 None
verification_question : String(Required) 당신의 첫 번째 애완동물 이름은 무엇인가요? 판매자 본인확인질문 None
verification_answer : String(Required) 뽀삐 판매자 본인확인 질문 답변 None
{
    "SellerRegisterDto": {
        "username": "asd123",
        "password": "1234",
        "confirm_password": "1234",
        "company_name": "컴퓨존",
        "email": "[email protected]",
        "verification_question": "당신의 첫 번째 애완동물 이름은 무엇인가요?",
        "verification_answer": "뽀삐"    
    }
}

Response

Success : 201

{
    "message": "회원가입이 성공적으로 완료되었습니다.",
}

잘못된 요청인 경우 : 400

{
    "error": "입력한 내용을 다시 확인해주세요"
}

사용자 ID 또는 이메일이 중복되었습니다. : 409

{
    "error": "사용자 ID 또는 이메일이 이미 존재합니다."
}

Server Error : 500

{
    "error" : "Internal Server Error"
}