I need to map the path to a few optional arguments for my endpoint
will look like localhost/func1/1/2/3 or localhost/func1/1 or localhost/func1/1/2 , and this path should be properly mapped to
public Double func1(int p1, int p2, int p3){ ... }
What should I use in my annotations?
This is a test task for playing with Jersey to find a way to use a few optional parameters, and not to learn about REST design.
source share