-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
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.