Is there a way to dynamically set swagger.api.basepath (which is configured in web.xml and controls root URL).
I found that I can do it programmatically(through ConfigReader) though it will still require me to have value in property file which needs to be maintained with different value on each server.
I understand for for external URL, i should need to configure it to hardcoded value.
but while deploying on different test and dev boxes, I don't want to be changing the web xml or properties file.
Is there a way that this can work even with plain ip address on URL?
I found similar question that was closed on springmvc (but didn't see what was the resolution)
Though I am not on spring and I am looking solution for tomcat, Jersey, Swagger stack.
Appreciate any help!!