akka/akka-http
Allow matching multiple query parameters in Java API
Ouverte
#605 ouverte le 1 déc. 2016
1 - triageddiscusshelp wantedt:java
Métriques du dépôt
- Stars
- (1 311 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 10h) (2 PRs mergées en 30 j)
Description
Currently, if there is a call with multiple query parameters, there are two ways to code it:
Nesting parameter directives:
parameter("param1_name", param1 ->
parameter("param2_name", param2 -> method(param1, param2))
, which quickly gets of hand in terms of size and readability, or using parameterMap/parameterList and checking for their availability manually. One has an unfeasible amount of ceremony, and the other results in error-prone code. Some more concise API needs to be added.