[aerogear-dev] REST-based API Versioning

Erik Jan de Wit edewit at redhat.com
Mon Sep 1 07:33:37 EDT 2014


> 
> Another option that might work out of the box would be to use the jax-rs @Consumes annotation e.g @Consumes({"application/vnd.aerogear.v101+json"}) on the service endpoints.      
> So by making an abstract PushNotificationSenderEndpoint and and several PushNotificationSenderEndpointV101, PushNotificationSenderEndpointV102 with the right @Consumes annotation should work. I haven't tried it though 


Tried out this option as well, seems to work, but to use it one must set the Content-Type to “application/vnd.aerogear.v101+json” instead of the Accept header.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140901/87886f09/attachment.html 


More information about the aerogear-dev mailing list