Hi All,
I’m trying to implement a rest endpoint with Java and lagom which should accept an array/multi value query string. According to lagom/lagom#1021 I understand that Lagom supports it.
ServiceCall definition looks like this:
ServiceCall<NotUsed, Vector> getProductsByIds(String code, Optional<java.util.List> productIds);
But looks like the productIds sent as query string are not getting mapped. Am I mapping correctly here or is this not supported in Lagom yet?
I’ve tried testing with query string different ways:
- productIds=00011a0a-922a-4b5c-869e-6b9af4371bb9&productIds=09dc5472-5b1b-4630-9b5b-7d28356c6710
- productIds=00011a0a-922a-4b5c-869e-6b9af4371bb9,09dc5472-5b1b-4630-9b5b-7d28356c6710
- productIds[0]=00011a0a-922a-4b5c-869e-6b9af4371bb9&productIds[1]=09dc5472-5b1b-4630-9b5b-7d28356c6710
Wonder whether I am testing incorrectly or Lagom ignoring this query string itself? Please advise.