request RESTFul api with query by using both Spring MVC Rest and JAX-RS