users@jersey.java.net

[Jersey] Re: how to view schema for a resource

From: Daniel Kirkdorffer <dankirkd_at_comcast.net>
Date: Tue, 20 Aug 2013 22:59:55 -0700

Does the WADL not include a resource reference to the WADL path plus XSD
that includes the schema for FOO?
 
Dan

-----Original Message-----
From: rouble_at_gmail.com [mailto:rouble_at_gmail.com] On Behalf Of rouble
Sent: Tuesday, August 20, 2013 3:17 PM
To: users_at_jersey.java.net
Subject: [Jersey] how to view schema for a resource


I have a very trivial jersey REST web service as follows:

@Path("/foows")
public class FooWebServiceImpl {
    @GET
    @Path("/foo")
    @Produces(MediaType.APPLICATION_JSON)
    public FOO getFoo() throws FooException {
        return new FOO(4);
    }
}

I can view the WADL here:
https://example.com/FooWebService/rest/application.wadl
And, I can access the value of foo here:
https://example.com/FooWebService/rest/foows/foo

My question is how do I view the schema for FOO?

tia,
rouble