[aerogear-dev] REST-based API Versioning

tolis emmanouilidis tolisemm at gmail.com
Mon Sep 1 07:50:40 EDT 2014


Could you try the @produces annotation?

I believe it will work with the Accept header since it indicates the
acceptable media-types from the client


2014-09-01 14:33 GMT+03:00 Erik Jan de Wit <edewit at redhat.com>:

>
> 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.
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140901/1c787908/attachment.html 


More information about the aerogear-dev mailing list