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

Possibility do disable pagination #20

Closed
nfp0 opened this issue Jan 23, 2023 · 4 comments
Closed

Possibility do disable pagination #20

nfp0 opened this issue Jan 23, 2023 · 4 comments
Labels
feature New feature or request

Comments

@nfp0
Copy link

nfp0 commented Jan 23, 2023

Is it possible to disable pagination?

Currently it's impossible to get, for example, all users on a single call.

@Ovi
Copy link
Owner

Ovi commented Jan 23, 2023

@nfp0 it's not possible to disable the pagination but you can use limit param to get all users:
https://dummyjson.com/users?limit=100

@Ovi Ovi closed this as completed Jan 23, 2023
@nfp0
Copy link
Author

nfp0 commented Jan 24, 2023

@Ovi The problem with the limit param is that it assumes the API will always have a fixed number of users.

A param such as limit=0 or limit=max, would be welcomed.

@Ovi
Copy link
Owner

Ovi commented Jan 24, 2023

That's a good idea @nfp0!

@Ovi Ovi added the feature New feature or request label Jan 24, 2023
@Ovi Ovi reopened this Jan 24, 2023
@nfp0
Copy link
Author

nfp0 commented Jan 25, 2023

Thank you!

@Ovi Ovi closed this as completed in ed035e0 Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants