bookstack icon indicating copy to clipboard operation
bookstack copied to clipboard

Pagination?

Open sglebs opened this issue 1 year ago • 3 comments

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 avatar Sep 20 '24 21:09 sglebs

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 avatar Sep 20 '24 21:09 sglebs

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 avatar Sep 20 '24 22:09 sglebs

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

sglebs avatar Sep 22 '24 18:09 sglebs