-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support for multi valued query parameter expressed as q=1&q=2&q=3 #67
Comments
fixed in 25b5b68 |
@natros If you can please test this on the latest HEAD-SNAPSHOT and confirm it is working we can start working on pushing a new release |
Hi, I did some tests, but there is one thing that is not working properly Taking the following case @RequestFactory
@Path("auth")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface AuthResource {
@PUT
@Nullable
UserDto becomeUser(String login);
} when calling Is there any flag that changes this or it's a bug? |
Can you please share the generated request class for that interface? |
With domino-rest
and with restygwt using the same interface
the server code remains unchanged. |
What I am saying is that what is domino-rest doing not wrong, it is making sure that since you are sending a json it should be valid json and encode the request accordingly, restygwt does check for valid json, this means that restygwt is expecting the server to understand that the not JSON body is a son, so this might depend on the server implementation. and might fail for some servers that does not accept a non-valid json. e.g : vertx HttpServer If the String method argument is a josn then you need to write to the body as a String without encoding it as a JSON, you can do this by providing a |
Using this example
where
UserType
is declared asDomino-Rest encodes this as
http://localhost/api/users?userType=[TYPE_A,TYPE_B]
that cannot be handled by RestEasy (my backend). For reference how RestEasy handle multivalued query parameters https://docs.jboss.org/resteasy/docs/3.6.0.Final/userguide/html/StringConverter.html#d4e1570 (28.4 and 28.4.1)RestyGwt translates this to
http://localhost/api/users?userType=TYPE_A&userType=TYPE_B
that works perfectly with RestEasyThe text was updated successfully, but these errors were encountered: