]> BookStack Code Mirror - bookstack/commit
Added contents to book-show endpoint
authorDan Brown <redacted>
Thu, 29 Sep 2022 14:05:57 +0000 (15:05 +0100)
committerDan Brown <redacted>
Thu, 29 Sep 2022 14:08:18 +0000 (15:08 +0100)
commit0e94fd44a8925c695441768eee0ecbce7bb239bc
treeb6e91da2cac59d7f8df62adc0ef1973ef60ae294
parentccbc68b5600790546e073546a31b8123d5693411
Added contents to book-show endpoint

Created a generic list formatting helper class for this, to align with
logic used on the search results endpoint and for easier future re-use
in a standardised way.
Also updated some class property types.
Added test to cover new books-contents results.
Related to #3734
app/Api/ApiEntityListFormatter.php [new file with mode: 0644]
app/Entities/Tools/BookContents.php
app/Http/Controllers/Api/BookApiController.php
app/Http/Controllers/Api/BookshelfApiController.php
app/Http/Controllers/Api/SearchApiController.php
dev/api/responses/books-read.json
tests/Api/BooksApiTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.