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

處理 News API 抓不到的問題 #48

Open
Julian0701 opened this issue Mar 1, 2023 · 4 comments · Fixed by #52
Open

處理 News API 抓不到的問題 #48

Julian0701 opened this issue Mar 1, 2023 · 4 comments · Fixed by #52
Assignees
Labels
2 hard level 2 enhancement New feature or request

Comments

@Julian0701
Copy link
Member

Julian0701 commented Mar 1, 2023

  1. 讓 /news 向 /api/news 送出頁數資料,並索取清單
  2. /news 依 1. 取得的清單呈現畫面
  3. /news/[newsId] 向 /api/news/[newsId] 索取資料
  4. /news/[newsId] 依 3. 取得的文章資料呈現畫面
@Julian0701 Julian0701 added enhancement New feature or request 8 hard level 8 labels Mar 1, 2023
@Julian0701 Julian0701 self-assigned this Mar 1, 2023
@Julian0701 Julian0701 added 2 hard level 2 and removed 8 hard level 8 labels Mar 1, 2023
@Julian0701
Copy link
Member Author

Julian0701 commented Mar 3, 2023

  1. 讓 /news 向 /api/news 送出頁數資料,並索取清單
  2. /news 依 1. 取得的清單呈現畫面

解決方案:
點擊分頁按鈕的時候觸發 paginationHandler ,這個 function 會去對 API 送出頁數資料 ,/news 再把 API 回傳的 news list 印在畫面上

@Julian0701
Copy link
Member Author

  • take 2 hrs

預計 3. 和 4. 也用相同的方法解決

  • remain 1 hr

@Julian0701
Copy link
Member Author

補上 news?page= 查找頁數的 function

@Julian0701
Copy link
Member Author

Julian0701 commented Mar 6, 2023

  • 補上 news?page= 查找頁數的 function
  • detail page API 完成

take 2 hrs

@Julian0701 Julian0701 linked a pull request Mar 6, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 hard level 2 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant