[aerogear-dev] REST-based API Versioning
Erik Jan de Wit
edewit at redhat.com
Tue Sep 2 02:24:12 EDT 2014
> Could you try the @produces annotation?
Same effect
>
> 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
>
> _______________________________________________
> 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/20140902/671b9f23/attachment.html
More information about the aerogear-dev
mailing list