the problem: we keep encountering things we'd like to do (specifically for Cather) that would then need to be built into the API, but can be handled by elasticsearch natively. Jess proposed the idea of creating an API endpoint that would simply pass along the request to elasticsearch and provide the raw JSON response.
Some discussion from slack:
do you think we would want the custom query to be made via the api_bridge?
like $api.custom({some json object}) ?
or we could add really common ones to the bridge, potentially
if it was like "find this month / day for all years"
I think I would rather we have an endpoint on our API that allows you to send JSON straight through?
although that's kinda scary
but it seems easier to coordinate URLs and that kind of thing
and maybe that endpoint only allows POSTs from CDRH / Library servers
that's what would make it scary, that they would post JSON to the API which would pass it straight to ES
so as long as it was locked to OUR projects ONLY then it would be less scary
the problem: we keep encountering things we'd like to do (specifically for Cather) that would then need to be built into the API, but can be handled by elasticsearch natively. Jess proposed the idea of creating an API endpoint that would simply pass along the request to elasticsearch and provide the raw JSON response.
Some discussion from slack:
do you think we would want the custom query to be made via the api_bridge?
like
$api.custom({some json object})
?or we could add really common ones to the bridge, potentially
if it was like "find this month / day for all years"
I think I would rather we have an endpoint on our API that allows you to send JSON straight through?
although that's kinda scary
but it seems easier to coordinate URLs and that kind of thing
and maybe that endpoint only allows POSTs from CDRH / Library servers
that's what would make it scary, that they would post JSON to the API which would pass it straight to ES
so as long as it was locked to OUR projects ONLY then it would be less scary
Use this space to discuss and raise concerns!