Is it possible to have an exposed API to return the response in either JSON or XML based on a parameter?
Example:
Https:Example/get?type=JSON - return response in JSON
Https:Example/get?type=XML - return response in XML
Hi @Shum Chin Ning ,
you could define the output of your REST method as a simple text field, and fill it with either JSON or XML dependant on the requested format.
See attached OML for the general idea.
Dorine
Thanks Dorine