oxidecomputer / third-party-api-clients

A place for keeping all our generated third party API clients.
https://docs.rs/octorust
MIT License
133 stars 56 forks source link

GitHub client: `list_repos_starred_by_user(...)` does not have any convenience function for retrieving all pages of paginated results #81

Open ctsrc opened 1 year ago

ctsrc commented 1 year ago

A lot of different parts of the github client has convenience functions for retrieving all pages from paginated endpoints.

However, the following one https://docs.rs/octorust/latest/octorust/activity/struct.Activity.html#method.list_repos_starred_by_user list_repos_starred_by_user(...) does not have any convenience function for doing so.

I would like that such a convenience function is added for this one as well.

ctsrc commented 1 year ago

Here is an example of one that does have a convenience function for retrieving all pages from paginated endpoint:

https://docs.rs/octorust/latest/octorust/repos/struct.Repos.html#method.list_all_for_user Repos list_all_for_user(...)

which is convenience for

https://docs.rs/octorust/latest/octorust/repos/struct.Repos.html#method.list_for_user Repos list_for_user(...)