Use Spring-Data-Rest to return response as XML instead of JSON

Brando

New Member
Spring-data-rest is currently RC1 (heading for GA July 16), but the documentation is still a little sketchy. So far all the example code I find shows responses defaulting to JSON, but I need XML, and ideally either XML or JSON based on ACCEPT header. I found one source in some comments in a DZone link that indicate XML is going to be supported. But that was posted during the M2 release, before RC1. I don't see anything in the Issues under the project either.So does anybody know how to make either RC1 (or SNAPSHOT) produce XML instead of or in addition to JSON.
 
Back
Top