I am not a rest expert, but based a few reference materials I think I can make a few improvements
1) You need to specify the param name in @Path annotation
2)
You should be using the default constructor for the class
3) You need to specify the @PathParam annotation on the methods that have the HTML annotations
Try the following changes:
The corresponding URL:
http://localhost:8084/REST_Jersey_Demo/resources/demo/100
---------------------------------------------------------------------------------------------------------------------
If you are dead set of using query parameters you can try the following
In this case the original url should still work