-
Notifications
You must be signed in to change notification settings - Fork 0
✔리뷰 리스트
alia edited this page Jan 5, 2021
·
3 revisions
메소드 | 경로 | 설명 |
---|---|---|
GET | /reivewList | 리뷰 리스트 가져오기 (ex. /reviewList?catIndex=4) |

{
"Content-Type": "application/json",
"token": "액세스토큰"
}
{
"catIndex": 4
}
{
"responseMessage": "리뷰리스트 가져오기 성공",
"data": [
{
"productIndex": 1,
"productImg": "productImg",
"manufacturer": "노브랜드",
"productName": "노브랜드 고양이 사료 12kg",
"tag1": "태그1 내용",
"tag2": "태그2 내용",
"tag3": "",
"memo": "",
"preference": 4,
"reviewMoment": "2021-01-02 00:00:00"
},
{
"productIndex": 2,
"productImg": "img",
"manufacturer": "GO!",
"productName": "데일리 디펜스 치킨스튜",
"tag1": "",
"tag2": "",
"tag3": "",
"memo": "메모",
"preference": 5,
"reviewMoment": "2021-01-05 00:00:00"
}
]
}
- productIndex : 캣푸드 인덱스
- productImg : 캣푸드 이미지 (링크주는대로 바로 이미지 적용됨!)
- manufacturer : 캣푸드 제조사
- productName : 캣푸드명
- tag1, tag2, tag3 : (리뷰 작성 시 선택사항이라) ""이면 태그 없는 것, 태그 있으면 내용이 나옴
- memo : (리뷰 작성 시 선택사항이라) ""이면 메모 없는 것, 메모 있으면 내용이 나옴
- preference : 평점
- reviewMoment : 리뷰 작성시간 (리뷰 상세보기에 들고 들어갈 수 있도록..? 필요없으면 지워주겠음)
- 유저가 리뷰 작성 안 했을 때
{
"responseMessage": "리뷰리스트 가져오기 성공",
"data": []
}
- 데이터 누락 (400)
{
"timestamp": "2020-12-29T02:04:54.539+00:00",
"status": 400,
"error": "Bad Request",
"message": "",
"path": "/reviewList"
}
- 서버 내부 에러 (requestParams 제대로 안 넣었을 때) (500)
{
"responseMessage": "서버 내부 에러",
"data": null
}
- 메소드 에러 (405)
- 경로 에러 (404)
- 권한 에러 (수정 삭제는 미리 막고 대부분 토큰 만료)(401)