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

Pagination? #14

Open
sglebs opened this issue Sep 20, 2024 · 3 comments
Open

Pagination? #14

sglebs opened this issue Sep 20, 2024 · 3 comments

Comments

@sglebs
Copy link

sglebs commented Sep 20, 2024

Can you please show in the README how the pagination can be done? For example, api.get_books_list() returns 100 elements in "data" bu also tells me there are 174 elements. I see you let me pass "id" as parameter, but how about pagination parameters?

@sglebs
Copy link
Author

sglebs commented Sep 20, 2024

For the record: count, offset etc need to be passed as query params in the API: https://demo.bookstackapp.com/api/docs#listing-endpoints

@sglebs
Copy link
Author

sglebs commented Sep 20, 2024

I installed the bleeding edge like this: pip install https://github.com/coffeepenbit/bookstack/archive/refs/heads/master.zip

And I called it like this: all_books = bookstack_api.get_books_list(params={"count": 500})

This worked.

@sglebs
Copy link
Author

sglebs commented Sep 22, 2024

Can we get a new oficial release with this params support enabled? Right now I have to:

pip install https://github.com/coffeepenbit/bookstack/archive/refs/heads/master.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant