API Pages : not list all the pages #2787

Closed
opened 2026-02-05 05:11:54 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @svgta1 on GitHub (May 9, 2022).

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

Originally created by @svgta1 on GitHub (May 9, 2022). ### 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
OVERLORD added the 🐛 Bug label 2026-02-05 05:11:54 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 9, 2022):

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 commented on GitHub (May 9, 2022): 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](https://user-images.githubusercontent.com/8343178/167438715-092a9cd7-d130-4023-8cb0-03f4f458243e.png)
Author
Owner

@svgta1 commented on GitHub (May 9, 2022):

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

@svgta1 commented on GitHub (May 9, 2022): Hi, Ok, you can close the issue... I have not seen the options in the API doc page. Sorry for that.
Author
Owner

@ssddanbrown commented on GitHub (May 9, 2022):

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 commented on GitHub (May 9, 2022): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2787