ryankennedy / swagger-jaxrs-doclet

Apache License 2.0
87 stars 136 forks source link

Support for subresources #48

Closed bleshik closed 10 years ago

bleshik commented 11 years ago

Example:

@Path("parent")
public class ParentResource {
    private ResourceContext resourceContext; 

    @Context
    public void setResourceContext(ResourceContext resourceContext) {
        this.resourceContext = resourceContext;
    }

    @Path("child")
    public ChildResource child() {
        return resourceContext.getResource(ChildResource.class);
    }
}

Paths like "/parent/child/..." are simply ignored now. It is not nice and should be fixed. My proposal is to include all methods of subresources in parent resource's description file.