Skip to content
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

TraversalBuilder and Hop should be able to handle multiple values for a template parameter #660

Open
ghost opened this issue Oct 27, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2017

With spring-mvc (and other frameworks) it is easy to handle requests where one parameter is used more than once in a single request, such as GET http://my-url.org/my-service?param=value1&param=value2&param=value3. (For instance, using spring-mvc one could use a List for a single parameter with multiple values or a MultiValueMap.)

However, the TraversalBuilder and Hop classes of spring-hateoas store template parameters in a Map and thereby fail to handle the above situation. Could this change, so that clients can handle multiple values?

@gregturn
Copy link
Contributor

gregturn commented Feb 5, 2019

You want a Map<String, List<String>>?

@ghost
Copy link
Author

ghost commented Feb 6, 2019

If this Map<String, List<String>> refers to the collection of all parameters and their possible multiple values, then yes, that seems to be a way of doing what I mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant