I want to narrow down the number of files in the articles folder in the GitHub repository.

Asked 2 years ago, Updated 2 years ago, 87 views

You can now retrieve all the files in the folder in the repository.
https://api.github.com/repos/user/zenn-content/contents/articles

Repository page:
https://github.com/wimpykid719/zenn-content/tree/master/articles

I'd like to add the pageation function to my blog, so I'd like to get the number of files, not all at once.Is it possible with GitHub's API?

I looked at the document and found no description for the files in the repository, although it seems that it is possible to adjust the number of repositories by setting parameters such as page=5&per_page=10.

Could you please let me know if anyone knows?Thank you for your cooperation.

github webapi

2022-09-30 16:43

1 Answers

I saw GitHub, and I would like to see it using the Zenn CLI of Zenn (https://zenn.dev/).
If you're writing in Zenn, you'd better watch the Zenn CLI tutorial.Otherwise, I think you should write a specific image of how to deploy and blog articles on GitHub.


2022-09-30 16:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.