Following up on my previous post around how simple it was to add JSON support to my CXF-based REST service...now I'll add versioning support to my XML-annotated model and see what happens.
Showing posts with label JSON. Show all posts
Showing posts with label JSON. Show all posts
Thursday, January 6, 2011
Versioning XML and JSON Models in a CXF REST Service
Tuesday, January 4, 2011
Add JSON Support to your REST Service
Continuing from my previous post about a standalone unit-test mechanism for your RESTful service, now I'll add JSON support to that service, which already gives you XML. This turns out to be a pretty simple thing - all we need is:
- Tell the RESTful service to produce both XML and JSON
- Add the runtime dependency you'll need
- Add some tests to confirm things
Subscribe to:
Posts (Atom)
