Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
4.0.0.Final
-
None
Description
I use "Resteasy client proxy API" and want to bind a static queryParam to getData()-method:
@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN }) public interface ProxyClient { @GET @QueryParam(value = "version=1") String getData(); @GET String getData2(@QueryParam("version") @DefaultValue("1") String version); }
I invoke the proxy method with:
String res1 = proxyRestClient.getData();
However, Resteasy does not produce the right URI as it does not append the `?version=1` to the URI.
When invoking
String res1 = proxyRestClient.getData("1");
it works. However, I dont want to pass the query property `version` as it should be fixed with the value `1` for every call to `getData()`. Please make @QueryParam with default value work on method level when using Resteasy Client-Proxy-Framework:
@GET // this should result in appending "version=1" to the query part of the URI @QueryParam(value = "version=1") String getData();