경매상품리스트조회 - NetworkProgramingProject/Server GitHub Wiki

경매상품리스트조회

메소드 경로 설명
GET /goods 경매상품 리스트 조회

요청 헤더

Content-Type: application/json
Header: token

응답 바디

SUCCESS : 경매상품 리스트 조회 성공

{
    "status": 200,
    "success": true,
    "message": "경매상품 리스트 조회 성공",
    "data": [
        {
            "id": 3,
            "title": "title(goods_name)_new",
            "img": "https://yeonghyeon.s3.ap-northeast-2.amazonaws.com/1623434124197.png",
            "min_price": 10000,
            "deadline": null,
            "desc": "description about goods",
            "createdAt": "2021-06-11T17:55:24.000Z",
            "updatedAt": "2021-06-11T17:55:24.000Z",
            "deletedAt": null,
            "OwnerId": 2,
            "SoldId": null
        },
        {
            "id": 3,
            "title": "title(goods_name)_new",
            "img": "https://yeonghyeon.s3.ap-northeast-2.amazonaws.com/1623434124197.png",
            "min_price": 10000,
            "deadline": null,
            "desc": "description about goods",
            "createdAt": "2021-06-11T17:55:24.000Z",
            "updatedAt": "2021-06-11T17:55:24.000Z",
            "deletedAt": null,
            "OwnerId": 2,
            "SoldId": null
        }
    ]
}

FAIL : 경매상품 리스트 조회 실패

{
    "status": 500,
    "success": false,
    "message": "경매상품 리스트 조회 실패"
}