Hi,

I am using version 3.4.2.

While working with the endpoint DSL for the REST producer component, I
noticed that I could not properly set the queryParameters.

Every time I use the DSL, it will add a string prefix of "null" in front of
the key.

It seems the autogenerated factory produces something wrong as per the
reference in github

https://github.com/apache/camel/blob/camel-3.4.2/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RestEndpointBuilderFactory.java#L486


I do not know how to use the queryParameters in the URI format either, my
current work around is to simply add it as a regular query parameter to the
camel URI in the "to" route.

For.e.g,
"rest:get:{baseUrl}?queryParam1={queryParam1}&queryParam2={queryParam2}" ...

It will be great to have some feedback on how to use the endpoint dsl / how
to use the rest component correctly in sending HTTP query params with
queryParameters in string URI format.

Cheers,
Wai Keung

Reply via email to