Trying to implement some sort of versioning for an enterprise API. It could interface with external APIs eventually so I want to do it right.
Resources will likely be grouped into war files (or maybe even JSE apps at some point who knows) that will be deployed on the server and the idea is to be able to have multiple versions live at the same time if need be. So in the case of war files in a container there might be a bundle1012.war with a context base of ../v1.0.12/bundle and a bundle1013.war with a base of ../v1.0.13/bundle etc.) I was thinking of having a Redirector running at root and rewriting the URL based on conditions (a la ../bundle/resource redirected to ../v1.0.12/bundle/resource). So for one case it could redirect every call to the latest version but then make it easy for me to back out and use the previous version. Or it could read attributes of the request and act on those to redirect some clients to one version and others to another. Any thoughts on this? Comments on latency from the redirection? Am I going about this the right way? Any recommended reading? Thanks. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2890410

