Skip to content

Support for @ApplicationPath in JAX-RS doclet #47

@grossws

Description

@grossws

Support JAX-RS paths prefixing set in @ApplicationPath("/rest") annotation.

In code I have something like:

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("/rest")
public class RestApp extends Application {
}
import javax.ws.rs.GET;
import javax.ws.rs.Path;

public class RestResource {
  @GET @Path("/resource")
  public String getResource() {
    // ...
  }
}

So all JAX-RS paths are relative to /rest either if I use @Path("/resource") it will be mapped to /rest/resource. So in documentation path should be /rest/resource instead of /resource as it is now.

Maybe it works fine if servlet-mapping is set for javax.ws.rs.core.Application to /rest/*, I haven't tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions