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.
Support
JAX-RS
paths prefixing set in@ApplicationPath("/rest")
annotation.In code I have something like:
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 forjavax.ws.rs.core.Application
to/rest/*
, I haven't tested.