- Issue created by @SamLerner
Currently, search interaction and results are rendered with Drupal templates for web browsers. There are situations, like with headless/decoupled Drupal sites, that we want to interact with search using JSON, so that the frontend can render its results independently.
Add an option to Vertex AI search pages that tells it to render as JSON instead of the Drupal theme system. You would still use the search page for credentials and settings. When you go to the search page URL, it will expect GET parameters to send to the Vertex API. Results are returned in JSON format from the search page URL, rather than rendered HTML.
New field on Vertex search pages to enable it as an API. Probably a checkbox, but it could be just a button.
Route requests from the configured search pages to the Vertex API, and return the JSON results to the page.
None
Active
1.3
Code