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

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.

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:

  1. Tell the RESTful service to produce both XML and JSON
  2. Add the runtime dependency you'll need 
  3. Add some tests to confirm things