Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.3
-
None
-
None
-
Unknown
Description
This is really a minor one: if you define a resource via interface
@Description(title = "My resource") interface AResource { @GET @Description(title = "bar") Response foo(); }
and then implement it:
class ResourceImpl implements AResource{ @PathParam("id") protected int id; @Context private HttpHeaders httpHeaders; @Context protected UriInfo uriInfo; public Response foo(){ return Response.ok().build(); } }
Then the generated WADL document will contain the method description ("bar") but not the resource level description ("My resource").
Workaround: annotate concrete implementation classes - this is of course rather tedious.