How we can design a REST service which returns both JSON and XML depending on the request header?
Post your questions and share knowledge, Hopefully you will gain something of significance here
How we can design a REST service which returns both JSON and XML depending on the request header?
Yes, REST resource may return either XML or JSON depending upon the request, you can choose below ways to decide which to return,