users@jersey.java.net

[Jersey] Re: Extended WADL example for JSON

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 30 Dec 2010 12:58:59 +0100

On Dec 17, 2010, at 8:38 PM, Jason Erickson wrote:

> The extended WADL of Jersey has a nice feature for XML
> documentation, where you can say:
> @response.representation.200.example {_at_link Examples#MY_SAMPLE_OBJECT}
>
> The WADL generator will actually marshal the MY_SAMPLE_OBJECT to XML
> for the documentation. That way the documentation reflects the REAL
> way that object would be represented. Awesome!
>
> Unfortunately, all of my services produce JSON. In JSON, the
> example is even more important because there is no equivalent of a
> schema for JSON. Is there anything similar available for JSON? Has
> anyone written anything custom that I could look at as an example?

Unfortunately not that i can recall. We accept patches :-)

Paul.