I looked in the community for an answer to this and the suggested solutions (1, 2) do not solve my problem.
I am calling a GET endpoint and need to add an arbitrary set of query params to it.
?foo=bar&foo1=bar1&foo2=bar2
I am creating this query string using a transformer as it requires references to several components on the page.
Within the query, I have a path parameter value and then I want to simply add the query parameter string to it.
api/items/{{ pathParam.value }}?{{ queryParams.value }}
However, when doing this it autopopulates the query parameter within the query, only setting the key with the transformer value
As a result, the full request url includes a dangling "=".
This is bad because our API, correctly, throws an error.
{
      "_tag": "Transformation",
      "path": [
        "work_score_weight"
      ],
      "message": "Unable to decode \"0.65=\" into a number"
    },
The other thing I tried was the following:
api/items/{{ pathParam.value + '?' + queryParams.value }}
This avoids the autopopulation of the query param in the query
Yet the ? character, which is the separating delimiter, is now encoded in the resulting query, causing an error.
Please advise.




