]> BookStack Code Mirror - bookstack/commit
Added API search endpoint
authorDan Brown <redacted>
Sun, 14 Nov 2021 16:28:01 +0000 (16:28 +0000)
committerDan Brown <redacted>
Sun, 14 Nov 2021 16:28:01 +0000 (16:28 +0000)
commit6f1bdbf771b00be12db676e6289830d8cdc7ecda
tree951283bc310c623c20773972b2da789b8b39d13f
parent20511899214f084732f90df7f0adb36be16c7714
Added API search endpoint

Is a little awkward, emulates a 'list' API endpoint but has unstable
paging and does not support filters/sort. This is detailed on the
endpoint though.

Made some updates to the docs system to better support parameters
and examples on GET requests.

Includes tests to cover.

For #909
app/Api/ApiDocsGenerator.php
app/Entities/Tools/SearchRunner.php
app/Http/Controllers/Api/SearchApiController.php [new file with mode: 0644]
dev/api/requests/search-all.http [new file with mode: 0644]
dev/api/responses/search-all.json [new file with mode: 0644]
resources/views/api-docs/parts/endpoint.blade.php
routes/api.php
tests/Api/SearchApiTest.php [new file with mode: 0644]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.