[aerogear-dev] REST-based API Versioning

Matthias Wessendorf matzew at apache.org
Fri Aug 29 07:47:51 EDT 2014


On Fri, Aug 29, 2014 at 1:29 PM, Erik Jan de Wit <edewit at redhat.com> wrote:

> Hi,
>
> 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 [1] that takes a json and transforms it into another json.
>

that sounds good to me


>
> 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.
>

While I like the above suggestion regarding the message format, couldn't we
be still on the same path, and use some 'advanced' CDI injection mechanismn
to inject a Version110SenderServiceImpl (or Version100ServiceImpl) ? Just
curious


>
> So WDYT any other suggestions?
>
> Cheers,
> Erik Jan
>
> [1] https://github.com/bazaarvoice/jolt
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140829/da14480a/attachment.html 


More information about the aerogear-dev mailing list