URL: /api/v1/user ? type=abc & company=xyz
In an API call, we can extract the query param by using @QueryParam annotation. But, we have to define the query parameter key for mapping.
@QueryParam("type") String type
@QueryParam("company") String company
In case, we have dynamic parameters coming in like page=2 & limit=10 & skip=20 & type=abc ... and we are making another call to a different service using a rest client. Here, we have to pass all the query parameters whatever are received in the request to that service.
How can we read and add these query params to the Request?