RESTEasy looks to ignore the trailing slash, so I cannot write two different web services with and without an trailing slash, and this example shows:
@Path("foo")
public class TestClass {
@GET
@Path("/bar")
public Response bar1() {
...
}
@GET
@Path("/bar/")
public Response bar2() {
...
}
}
With RESTEasy the GET-request to /foo/bar as well as /foo/bar/ are handled by bar2(). Considering RFC3986 and the JAX-RS Spec I do not see why this is handled like this. Could this be a problem with RESTEasy or is there something I oversee?