Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting multiple Versions of API #602

Open
SagarN opened this issue Dec 23, 2015 · 1 comment
Open

Supporting multiple Versions of API #602

SagarN opened this issue Dec 23, 2015 · 1 comment

Comments

@SagarN
Copy link

SagarN commented Dec 23, 2015

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

@RichardHightower
Copy link
Member

I think that is the right way.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants