coffeepenbit / bookstack

A Python wrapper for BookStack's API
MIT License
23 stars 8 forks source link

Pagination? #14

Open sglebs opened 1 month ago

sglebs commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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