-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RestClientInvoker does not serialize multiple query parameter values (List<String>) #12
Comments
Hello, this is default behaviour of JAX-RS client and as such I am not inclined to change it, as I would prefer to keep consistency between the two. If you need URL that you wrote, you can define your interface to accept array instead of list and simply when calling interface method pass |
Hello, I used array in my interface, but it did not help. I have extended the kumuluzee sample rest applications (attached) with new Customer API method accepting array:
but serialized query string was not as expected ( example: to execute the code, query the client application: If you have a working sample of the query parameter array, I will appreciate it. |
none of this client definitions is working:
the problem is with Java, that does not pass array correctly into the method with varialble parameters, when the array is stored in the variable of Type Object:
the |
Hi, There was a bug when mapping generic collections, which was fixed in version 1.4.1 (note that this version requires json-b, alongside of json-p). Can you try upgrading the version if possible? |
I had the same issue today on latest snapshot version of kumuluz rest client. The expected behavior is explained in mp rest client 2.0 specification: I think this issue should be closed (due to inactivity) and the problem should be fixed in newer mp client integration. |
When a rest client API specifies multiple query parameter values, e.g.:
The URI is built as
"/rest/v1/query?filter=[1,2,3]"
instead of"/rest/v1/query?filter=1&filter=2&filter=3"
The RestClientInvoker.invoke() method should add param values as array in case of list:
The text was updated successfully, but these errors were encountered: