-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to paginate requests #139
Comments
Hey @lengrongfu, thanks for opening the issue. Please have a look at the provided example on how to instantiate a client using the optional pagination options. The options specified there will be passed to the Harbor API when calling the desired method, regardless of whether the client has been instantiated using HTH |
According to your example, this can only show 100 pieces of data, the interface cannot obtain the data on the second page |
Hey @lengrongfu, sadly, the API usage example is a bit misleading. With #145, it should be a lot more clearer on how to instantiate a client. Just for the record: Specifying |
in the example, used internal package, how can user make this code work? |
and why X-Total-Count is empty string, |
Describe your request
A clear and concise description of what you need help with.
I found that setting paging parameters is currently only used when
NewRESTClientForHost
is initialized, how to make paging calls when getting data, such as gettingList Project
.The text was updated successfully, but these errors were encountered: