I am trying to remove line breaks in an xml request using below api gateway template but doesn’t seem to work:
template:
application/xml: |
{"body": "#set($reg='/(\n|\r)/gm') #set($jx=$input.path('$').replace($reg,"")) $jx " }