overwatch icon indicating copy to clipboard operation
overwatch copied to clipboard

[FEAT] - APIV2 - Add proxy option

Open GeekSheikh opened this issue 3 years ago • 1 comments

Some customers have proxy configs that they are struggling to make work with OW cluster configs. Let's externalize an optional config for API_Proxy and if it is set add the like to the all API actions (i.e. get/post/patch/etc.). This should be added to the Overwatch ApiEnv var as well.

The new API call will look something like what is below. If there's a way to add the proxy config to the reqOptions map, let's do that instead so we don't have to have another version of the call.

Http(req)
...
.postData(jsonQuery)
.options(reqOptions)
.proxy(apiEnv.proxyConfig)
...

GeekSheikh avatar Jul 21 '22 16:07 GeekSheikh

tried with all the options but final solution is to make 2 versions of the api call.

Sriram-databricks avatar Aug 19 '22 10:08 Sriram-databricks