Skip to content

Repository files navigation

This project is admin page what is upload dumy data.
if you want using this api, you need read this reference.

Usage

email 목록확인

applicaion/json

GET api/userList


Response

Success

{
    "code": 200,
    "json": {
        "success": true,
        "message": "userList 조회 성공",
        "data": [
            {
                "_id": "5e0a3d33217f2200119b6036",
                "email": "21ewfefewfew"
            },
            {
                "_id": "5e0a416f217f2200119b6037",
                "email": "plan@sopt.org"
            },
            {
                "_id": "5e0a4352217f2200119b603c",
                "email": "98_02@naver.com"
            },
            {
                "_id": "5e0a4459217f2200119b6041",
                "email": "soar_dy@naver.com"
            },
            {
                "_id": "5e0a4763217f2200119b6042",
                "email": "girlcrush@naver.com"
            },
            {
                "_id": "5e0a483c217f2200119b6046",
                "email": "ooeunz@naver.com"
            },
            {
                "_id": "5e0a4ac2217f2200119b604a",
                "email": "hjm97@naver.com"
            },
            {
                "_id": "5e0a4b01217f2200119b604c",
                "email": "hojune00@naver.com"
            }
        ]
    }
}




상품 등록

applicaion/json

POST api/goods


Request

body

{
    "goodName": "상품 이름",
    "email": "이메일",
    "comment": "상품 한줄 평",
    "color": ["red, blue"],
    "category": "outer",
    "gender": "m",
    "size": "xxlg",
    "price": 20000,
    "grade": 10,
    "condition": 10,
    "style": ["pretty", "sporty"]
}

image


Response

Success

{
    "code": 200,
    "json": {
        "success": true,
        "message": "Goods를 Database에 저장했습니다.",
        "data": {
            "goodName": "상품 이름",
            "comment": "상품 한줄 평",
            "color": ["red, blue"],
            "category": "outer",
            "gender": "m",
            "size": "xxlg",
            "price": 20000,
            "grade": 10,
            "condition": 10,
            "style": ["pretty", "sporty"],
            "img": ["image URI", "image URI"],
            "createAt": "생성 시간",
         }
    }
}


Fail: Database 저장 오류

{
    "code": 403,
    "json": {
        "success": false,
        "message": "Database 저장에 실패했습니다..",
    }
}

Fail: 서버 내부 오류

{
    "code": 500,
    "json": {
        "success": false,
        "message": "서버 내부오류 발생",
    }
}





유저 등록

applicaion/json

POST api/user


Request

body

{
    "email": "이메일",
    "pwd": "패스워드",
    "username": "닉네임",
    "gender": "성별 / m: ma, f: female", 
    "address": "주소",
    "phone": "010-xxxx-xxxx",

    "simple": 0,
    "street": 2,
    "lovely": 3,
    "modernchic": 5,
    "unique": 2,
    "formal":2,
    "ethnic": 8,
    "sporty": 2,
    "oldschool": 2
}


Response

Success

{
    "code": 200,
    "json": {
        "success": true,
        "message": "Goods를 Database에 저장했습니다.",
        "data": { 
            "email": "email", 
            "pwd": "pwd", 
            "username": "username", 
            "gender": "gender", 
            "address": "address", 
            "phone": "phone", 
            "style": { 
                "simple": 2,
                "street": 3, 
                "lovely": 4, 
                "modernchrnchic": 4,
                "unique": 2, 
                "formal": 6, 
                "ethnic": 3, 
                "sporty": 6, 
                "oldschool": 4
            }
        }
    }
}



Releases

Packages

Used by

Contributors

Languages