-
Notifications
You must be signed in to change notification settings - Fork 20
Use the backendBasePath to adjust the Host inside the Swagger-File #81
Comments
Yes, that's expected behavior as the parameter: backendBasePath controls the API-Manager Proxy-Configuration and is not changing the Swagger-File itself. Does it makes sense? |
that's the answer I was afraid of :) Thanks for clarification. |
Not at the moment. Perhaps something which can be added later. Should be an easy thing to do, as the Swagger-File is loaded internally anyway. |
backendBasePath to replace or set the host parameter in the Swagger-Definition. This can be turned off using the parameter: replaceHostInSwagger
@vuvdoan, As the enhancement makes so much sense, I decided to implement this feature for the next release, which is now done. See env.properties.sample for reference in the next release. Can also be used as a normal CLI parameter. However, the code is implemented in way, if the replace fails for any reason, it is logged with an error message + exception trace, but the tool continues. |
Released with version 1.5.3 |
Hi,
I've defined the backendBasePath in the config/contract file and publish my API with the tool. After publishing a frontend API and a backend API were created in the axway API manager. So far so good.
Unfortunately the backendBasePath is only substituted for the frontend API (backend service url) but not for the backend (base path url). Resulting the certificated cannot be downloaded automatically.
It seems like this parameter backendBasePath does not have the same effect as having host parameter in the swagger file at all. If a host param is defined in the swagger file and I publish it with the tool. Everything works fine.
Is this work as designed? I don't want the host param to be defined in the swagger file, since I have multiple stages. Can you please check?
Thanks,
Vu
The text was updated successfully, but these errors were encountered: