qbit icon indicating copy to clipboard operation
qbit copied to clipboard

Supporting multiple Versions of API

Open SagarN opened this issue 9 years ago • 1 comments

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

SagarN avatar Dec 23 '15 02:12 SagarN

I think that is the right way.

managedServiceBuilder.addRootURI("/"); And then in each service, I encode the Version @RequestMapping("/v1/serviceA") @NoCacheHeaders

RichardHightower avatar Dec 28 '15 08:12 RichardHightower