[aerogear-dev] REST-based API Versioning
Erik Jan de Wit
edewit at redhat.com
Fri Aug 29 07:29:38 EDT 2014
Thinking a bit more about this (read trying out some stuff). The way we want to change the API is right now is ‘just’ the message format, how about we take a servlet filter that changes the json from the old version to the new?
There is a lib  that takes a json and transforms it into another json.
Other option is to have 2 jax-rs classes, but to make that work they will have to have 2 different paths. So you would have to ‘redirect’ / change the path in the servlet filter based on the accept header. Which feels like kinda of a hack to me.
So WDYT any other suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the aerogear-dev