I have an API Gateway that will be put in-front of our elasticsearch APIs. It routes traffic by using a basepath. So a request url would look like the following.
https://api.example.com/elasticsearch/v1/exampleindex/_search
The gateway can send it to elasticsearch without the basepath.
Is there a way to configure the client to include a basepath?