Replies: 1 comment 4 replies
-
Not any Micronaut gurus out there willing to answer? If it cannot be achieved with the declarative client at least give me an alternative.. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have defined this declarative client:
All fine and dandy until a want to use the multi-valued query parameter producers.
My issue here is that when passing a list of producers the generated URI looks like
/auto?Enterprise_Nbr=1234&producers=111%2C222%2C333
What the server expects is instead
/auto?Enterprise_Nbr=1234&producers=111,222,333
According to the user's guide (section 7.5.1 Customizing Parameter Binding), I should be able to use the Format annotation together with QueryValue to specify how the query values are to be formatted.
(I also tried to pass producers as a single String value by joining the values with comma delimiter, but the comma is escaped to %2C prior to the call)
Beta Was this translation helpful? Give feedback.
All reactions