Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 getItems, itemHandler 구현 #31

Merged
merged 3 commits into from
Nov 3, 2023
Merged

🎉 getItems, itemHandler 구현 #31

merged 3 commits into from
Nov 3, 2023

Conversation

doggopawer
Copy link
Contributor

- 목적

  • 페이지 조회를 위한 가짜 API를 만들었습니다.
    관련 티켓 번호: 61

- 주요 변경 사항

  • getItems가 여러 인자를 받기는 하나 실질적으로 cursorId 인자만 반영되도록 하였습니다.(무한스크롤을 구현해야하기 때문에)

기타 사항 (선택)

  • 필요한 기능들을 확인하기 위해 만든 API라서, 코드를 이해하실 필요 없습니다!

- 스크린샷 (선택)

@doggopawer doggopawer added the D-0 label Nov 2, 2023
@doggopawer doggopawer self-assigned this Nov 2, 2023
@doggopawer doggopawer requested a review from oaoong November 2, 2023 08:15
const queryString = req.url.search
const cursorId = queryString.slice(10)
const currentPage = Number(cursorId)
const PAGE_SIZE = 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PAGE_SIZE는 한 번 당 불러오는 개수인가요?
요거 백엔드에서 정의하는게 아니라 요청할 때 같이 보내줘야 하는 것으로 기억하는데 바뀌었나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

명세에는 없어서, 일단 이렇게 작성 했는데
실 API 완성되고 적용될때 다시 pr open해서 적용하겠습니다

@doggopawer doggopawer merged commit 2d055a8 into develop Nov 3, 2023
2 checks passed
@doggopawer doggopawer deleted the NABI-61 branch November 3, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants