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

feat: CLI #1

Open
AndersDJohnson opened this issue May 26, 2019 · 0 comments · May be fixed by #46
Open

feat: CLI #1

AndersDJohnson opened this issue May 26, 2019 · 0 comments · May be fixed by #46
Assignees
Labels
enhancement New feature or request hacktoberfest

Comments

@AndersDJohnson
Copy link
Owner

AndersDJohnson commented May 26, 2019

fetch-paginate https://api.example.com/things

To use page mode (default behavior, with default param name page):
fetch-paginate --page https://api.example.com/things
Or with custom page param name pg:
fetch-paginate --page pg https://api.example.com/things


Otherwise, to use offset/limit mode (with default param name offset and limit):
fetch-paginate --offset https://api.example.com/things

Or with custom param names count and max:
fetch-paginate --offset count --limit max https://api.example.com/things


Also, with custom path specifying how to get items list from a page of response data:
fetch-paginate --items data.items oohttps://api.example.com/things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant