Im using Jersey for jax-rs and I have two methods in my Resource
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/Updates")
public FileBrowserLoadResult getUpdates() {
return getUpdates("", "");
}
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/Updates"+"/{id: [0-9]+}{path: .*}")
public FileBrowserLoadResult getUpdates(@PathParam("id")String id, @PathParam("path") String path) {
return null;
}
Is it possible to combine the path so I don't have to implement two methods? The Parameter can be empty but I don't know how to solve it.