Hi... I'm trying to figure out how to set up a REST API with optional
queryParams. Something along the lines of:
interface API
{
@queryParam("p1", "p1")
@path("/api/obj")
Json querybyp1(string p1);
@queryParam("p2", "p2")
@path("/api/obj")
Json querybyp2(string p2);
}
And have the URLs: "http://127.0.0.1/api/obj?p1=abc" and
"http://127.0.0.1/api/obj?p2=def" go to the two different functions.
One or the other must be supplied. For further consideration, what gets
called if both are supplied....