Closed diego-abarca closed 2 years ago
@diego-abarca - Why would you want to change the basepath? Shouldnt this be coming from the spec itself?
@ssvaidyanathan for cases when the proxy url basepath has to be different than the target url basePath
For example:
Just to be clear --> The example you provided, are they the backend URLs? or the URLs of the proxy itself?
The code snippet suggest that you want to update the Apigee proxy basepath different from what is provided in the spec
For example the spec can have the basepath as /foo and instead of setting that you want to pass it as /bar
is that correct?
But the code you have provided is updating the Proxyendpoint configuration. Its updates the Apigee proxy basepath to what ever pass in the argument. But what you are saying is updating the Target URL which should be in the TargetEndpoints
Correct, that's the intention, the Target Endpoint will remain the same, will still be based on the spec, but the proxy endpoint can be modified to the value of the argument
Hi, I've noticed that this PR is still open, is any extra information needed to merge or close? thanks
Fixed and released in v0.9.0 Sorry for the delay.
https://github.com/anil614sagar/openapi2apigee/issues/7
By Adding -B or --basepath, a different basepath can be passed to the proxy, IE:/proxybasepath ---> /api/v1