BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

API Pages : not list all the pages

Open svgta1 opened this issue 4 years ago • 3 comments

Describe the Bug

The API pages don't list all the pages of the databases. In my case, a lot of pages included in chapters are not listed. But the page is accessible when using its id.

Steps to Reproduce

It's difficult to give steps to reproduce. My application has :

  • 6 shelves
  • 14 books
  • 8 chapters
  • more than 500 pages

Expected Behaviour

List all pages with the API (in one shot or with pagination)

Screenshots or Additional Context

No response

Browser Details

Brave 64 bits on win 11

Exact BookStack Version

v22.03.1

PHP Version

PHP 8.1

Hosting Environment

Debian 10, apache 2.4

svgta1 avatar May 09 '22 14:05 svgta1

Hi @svgta1, Are you using the listing options as shown in the "Listing Endpoints" section of the API documentation?

Screenshot from 2022-05-09 16-01-07

ssddanbrown avatar May 09 '22 15:05 ssddanbrown

Hi, Ok, you can close the issue... I have not seen the options in the API doc page. Sorry for that.

svgta1 avatar May 09 '22 15:05 svgta1

No worries, will therefore close off. If you ever need some examples of API usage I keep a collection here: https://github.com/BookStackApp/api-scripts

ssddanbrown avatar May 09 '22 15:05 ssddanbrown