-
Notifications
You must be signed in to change notification settings - Fork 926
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 HTTP GET map parameters? #6058
Comments
Could you check if it works when using armeria/core/src/test/java/com/linecorp/armeria/server/AnnotatedServiceBindingBuilderTest.java Line 213 in a8220b5
|
It does not work for HTTP GET:
Error msg:
|
Hi, @rickyma |
I implemented this in another way. The client passes a custom KV string, and the server performs the corresponding parsing.
Sorry, but I haven't had much time recently. It would be great if someone else could fix it. |
Hi @minwoox ! I'm interested in contributing to this issue as my first contribution. Would it be okay if I worked on this? If there are any specific guidelines or expectations, I'd appreciate your advice. Thank you! |
Sure, it's all yours. 👍
We should support both Map and multi map: @Get("/foo")
public HttpResponse foo(@Param Map<String, Object> params) {...}
// Used when a key have multiple values.
@Get("/bar")
public HttpResponse bar(@Param SomeMultiMap<String, Object> params) {...}
// We cannot use Guava's Multipmap because we shade the dependency. But, let's support the |
@minwoox Thanks, I'll try it ! |
Do we support passing map parameters using HTTP GET in Armeria?
My code:
An exception occurred:
I tried to use a converter, but it seemed only worked when using POST methods:
The text was updated successfully, but these errors were encountered: