Policy to Echo the Request Body Only


How to write a policy to echo the request body only?

✍: FYIcenter.com


Here is a policy that echoes the request body only:

<!-- Echo-Policy.xml
     Copyright (c) FYIcenter.com
			<set-status code="200" reason="Ok"/>  

If you specify this policy to your API operation, the client request will not be forwarded to any backend services.

Azure will return the request body as the response body with a status code of 200.


Azure API Policy Examples

⇒⇒Microsoft Azure API Management Tutorials

2017-10-23, 241👍, 0💬