users@wadl.java.net

Re: How to describe primitive representations

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 23 Feb 2010 10:10:42 -0500

On Feb 23, 2010, at 6:06 AM, Sergey Beryozkin wrote:

> Hi,
>
> Consider this JAXRS resource :
>
> @Path("/")
> public class Resource {
> @GET
> @Produces("text/plain")
> public String getValue() {return "plain value";}
> }
>
> How to have such a plain representation described in WADL ?
>
> Perhaps
>
> <representation>
> <param style="plain"/>
> </representation>
>
> ?

There's no real structure in the response so I'd expect something like:

<response status="200">
  <representation mediaType="text/plain"/>
</response>

Marc.