-
Notifications
You must be signed in to change notification settings - Fork 0
[GET] 홈 상품리스트 조회
MyeongHui edited this page Jun 9, 2020
·
5 revisions
메소드 | 경로 | 설명 |
---|---|---|
GET | /home/category/:id | 해당 카테고리 상품리스트 조회 |
key | 설명 | 타입 | 비고 |
---|---|---|---|
id | 조회 카테고리 Idx | INT | NOT-NULL, "1" 사용하세요~ |
{
"status": 204,
"success": true,
"message": "상품리스트 조회 성공",
"data": [
{
"name" : "가구이름",
"content" : "내용",
"like" : 1,
"image" : "https://user-images.githubusercontent.com/61861809/83473063-ad391a00-a4c3-11ea-9187-cb3d5fd1c1d8.png",
"subProduct" : [
{
"d_name" : "옵션1 가구이름",
"d_price" : 23000,
"d_sale" : "옵션1 할인율",
"d_image" : "{옵션1 url}"
},
{
"d_name" : "옵션1 가구이름",
"d_price" : 23000,
"d_sale" : "옵션1 할인율",
"d_image" : "{옵션1 url}"
}
]
}
]
}
- 데이터 누락
{
"status": 400,
"success": false,
"message": "조회에 실패했습니다."
}