The required URL should be something like this :
http://<host>:<port>/path/item?<arguments>
The arguments key and value supposed to be multiple and dynamic, so I cannot use @BeanParam
or @QueryParam
. Also I can only call this interface without implementation.
My current code is something like this :
public interface RestService {
@GET
@Path("/path/item")
@Produces(MediaType.APPLICATION_JSON)
public JsonNode method(@QueryParam("params") String params);
}
Example of arguments that I want to pass : brand=myBrand&price=myPrice
Is there any way to do something like this ?
My References :