qbit
qbit copied to clipboard
Supporting multiple Versions of API
ManagedServiceBuilder sets the root uri which is the version of API Call (in our case).
Is there any way to support multiple ROOT URIs
managedServiceBuilder.setRootURI("/v1");
This pretty much sets one version.
How about
managedServiceBuilder.addRootURI("/v1");
managedServiceBuilder.addRootURI("/v2");
As of now to get around this ,
I have implemented
managedServiceBuilder.addRootURI("/");
And then in each service, I encode the Version
@RequestMapping("/v1/serviceA") @NoCacheHeaders
I think that is the right way.
managedServiceBuilder.addRootURI("/"); And then in each service, I encode the Version @RequestMapping("/v1/serviceA") @NoCacheHeaders