Forum Discussion
richie
4 years agoCommunity Hero
Hey eissaeva
Easiest way to convert json to xml in a response is to add the 'Accept' http header to the request that generates the response.
The value you set for the header will be 'application/xml'.
This will set the response sent back from your endpoint as xml
Cheers
Rich
Easiest way to convert json to xml in a response is to add the 'Accept' http header to the request that generates the response.
The value you set for the header will be 'application/xml'.
This will set the response sent back from your endpoint as xml
Cheers
Rich