]> BookStack Code Mirror - bookstack/commit
Queries: Update API to align data with previous versions 4827/head
authorDan Brown <redacted>
Sun, 11 Feb 2024 15:42:37 +0000 (15:42 +0000)
committerDan Brown <redacted>
Sun, 11 Feb 2024 15:42:37 +0000 (15:42 +0000)
commit1ea2ac864aaa7e4ee3995ec675fd92db7b2722cd
treef941bf40a22a471aaf0e8c0fd36c3bfb825fc274
parented9c013f6e7ee7a7bfe1c67b4cb1a84ca198b7a6
Queries: Update API to align data with previous versions

Ensures fields returned match API docs and previous versions of
BookStack where we were accidentally returning more fields than
expected.
Updates tests to cover many of these.
Also updated clockwork to ignore image requests for less noisy
debugging.
Also updated chapter page query to not be loading all page data, via new
query in PageQueries.
app/Config/clockwork.php
app/Entities/Controllers/BookApiController.php
app/Entities/Controllers/BookshelfApiController.php
app/Entities/Controllers/ChapterApiController.php
app/Entities/Controllers/ChapterController.php
app/Entities/Controllers/PageApiController.php
app/Entities/Queries/PageQueries.php
tests/Api/BooksApiTest.php
tests/Api/ChaptersApiTest.php
tests/Api/PagesApiTest.php
tests/Api/ShelvesApiTest.php