Using java jersey, I have the following @QueryParam's in my method handler:
@Path("/hello")
handleTestRequest(@QueryParam String name, @QueryParam Integer age)
I know if I do: http://myaddress/hello?name=something
It will go into that method....
I want to make it so that I can call:
And it will also go into that same method. Is there any way I can flag an "optional" PathParam? Does it work with @FormParam too? Or am I required to create a separate method with a different method signature?