Creating a multi-tier solution by using services in Azure with API Management Part 3 – Manipulate an API response

Now in this final part we’ll use the outbound policy to change the xml response to json.

Create a new operation and set the url to

GET /xml

Next in the outbound policy add the code for xml-to-json

<xml-to-json kind="direct" apply="always" consider-accept-header="false" />

Now testing the link you will notice that the format changed.

Just to verify go back to your browser and visit your web app with the same path and notice the format.

Great work with the lab! Take care!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: