]> BookStack Code Mirror - bookstack/commit
Added url and preview_html params to search API results
authorDan Brown <redacted>
Mon, 6 Dec 2021 20:42:04 +0000 (20:42 +0000)
committerDan Brown <redacted>
Mon, 6 Dec 2021 20:42:04 +0000 (20:42 +0000)
commitb22dd3cb88335b362fdc5989e818829798d6658b
treea4ac598442857f96d052cc184b9da2ffefe48649
parente6c8ecba9c38f9dd85f38116a3a0ff51ae483aa3
Added url and preview_html params to search API results

Allows easy direct linking and usage of the HTML preview content
we show in the UI when viewing search results.
Note: preview_html content is a rough representation only, it does not
match exactly what was matched in the database-search-operation which
finds the results.

For #3096 and #3080
app/Http/Controllers/Api/SearchApiController.php
dev/api/responses/search-all.json
tests/Api/SearchApiTest.php