issues
search
HAND-PYEON
/
handpyeon-web
핸드편, 내 손안의 편의점 할인 정보
0
stars
2
forks
source link
feat(web): 핫트렌드 API 업데이트 (리스트, 디테일)
#37
Closed
brightchul
closed
1 year ago
brightchul
commented
1 year ago
한 줄 요약
핫 트렌드 API 변경 사항 및 디테일 API를 반영
자세한 내용
핫트렌드 리스트 API 응답 타입 업데이트
기존 응답 타입에서 pageInfo, id 추가
핫트렌드 디테일 API 반영
디테일 API 관련 추가 getHotTrendGoodsDetail, useGetHotTrendGoodsDetail
hottrend/[category]의 sub route를 [rank] 에서 [id]로 변경
기존의 hottrend/[category]/[rank] 경우 rank API가 필요한 구조였지만, 현재 rank API는 없으며 hottrend detail API만 존재
백엔드 이슈로 인해서 rank API는 추가되기 힘들다고 판단하여 사용할 수 있는 API에 맞게 구조를 변경
핫트렌드 페이지는 기존에는 첫 페이지가 랭킹 1위 내용으로 가도록 되어 있지만 관련 API가 없기 때문에 일단 리스트를 불러서 1위를 확인한 다음에 해당 1위 id로 이동하도록 재구성
백엔드 이슈로 현재 데이터가 없거나 부족하기 때문에 null 로 id값이 될 경우 상단 핫트렌드 info 컴포넌트는 렌더링 되지 않도록 수정
github-actions[bot]
commented
1 year ago
The latest updates on your projects.
Learn more about
Vercel for Git ↗︎
Name
Preview
handpyeon-web
Visit Preview
한 줄 요약
핫 트렌드 API 변경 사항 및 디테일 API를 반영
자세한 내용
핫트렌드 리스트 API 응답 타입 업데이트
핫트렌드 디테일 API 반영
hottrend/[category]의 sub route를 [rank] 에서 [id]로 변경