go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.21k stars 5.5k forks source link

Add pagination to list API endpoints that do not have it yet #18082

Open qwerty287 opened 2 years ago

qwerty287 commented 2 years ago
qwerty287 commented 2 years ago

There is also one endpoints that only support since/before params, but not page/limit`:

https://codeberg.org/api/swagger#/issue/issueGetComments

qwerty287 commented 2 years ago

And /repos/{owner}/{repo}/git/trees/{sha} uses per_page instead oft limit, should be deprecated.

lunny commented 2 years ago

And /repos/{owner}/{repo}/git/trees/{sha} uses per_page instead oft limit, should be deprecated.

I updated your issue so that we can follow them easier. :)