101102103104105106107
} @GET @Path("chapter") public Chapter getChapter() { return new Chapter(1); }
108109110111112113114
@GET @Path("chapter2") @WadlElement(response = Chapter.class) public Response getChapter2() { return Response.ok().entity(new Chapter(1)).build(); }
121122123124125126127
128129130131132133134
@GET @Path("chapter2") @ElementClass(response = Chapter.class) public Response getChapter2() { return Response.ok().entity(new Chapter(1)).build(); }
107108109110111112113
} @GET @Path("chapter") public Chapter getChaper() { return new Chapter(1); }
114115116117118119120
@GET @Path("chapter2") @ElementClass(response = Chapter.class) public Response getChaper2() { return Response.ok().entity(new Chapter(1)).build(); }
129130131132133134135
136137138139140141142