Add an amperand into set-body in Azure API Management

Viewed 50

I'm trying to use the set-body function and enter an & into the XML to add a parameter to a URL dynamically in a liquid template

For example

{% if {body.pagination} %}
  "url": "/api/device/select?stats=true&{{body.pagination}}",
{% else %}
  "url": "/api/device/select?stats=true",
{% endif %}

I receive the following error when trying to save the above

An error occurred while parsing EntityName. Line 31, position 114.

Is there a way to escape the & symbol, I can't use & as this is not recognised on the backend system

1 Answers
Related