I have many parameters to pass to the server using JAX-RS.
Is there a way to pass or AarryList with the URL?
We can get the Query parameters and corresponding values as a Map,
@GET
@Produces(MediaType.APPLICATION_JSON)
public void test(@Context UriInfo ui) {
MultivaluedMap map = ui.getQueryParameters();
String name = map.getFirst("name");
String age = map.getFirst("age");
System.out.println(name);
System.out.println(age);
}