Tuesday, 10 September 2013

REST Service response based on accept parameter

REST Service response based on accept parameter

I am looking to create a REST service compatible for XML as well as JSON
Response. With the URI being similar for both. I need to provide response
based on the accept header.
Is this possible with a single URI? IF possible, how do I set the @Produces?

No comments:

Post a Comment