Tools, FAQ, Tutorials:
'rewrite-uri' Policy Statement
How to use the "rewrite-uri" Policy Statement for an Azure API service operation?
✍: FYIcenter.com
The "rewrite-uri" Policy Statement is actually doing the same work as the operation setting "Rewrite URL template".
For example, if you create an API operation with the following settings:
HTTP verb: POST URL template: /profiles Rewrite URL template: /users
You will see the "rewrite-uri" policy statement automatically added as shown below:
<inbound> <rewrite-uri template="/users" /> </inbound>
The "rewrite-uri" policy statement in the <inbound> block tells Azure to append the given URI template to the "Web service URL" API setting when calling the backend service.
⇒ 'set-method' Policy Statement
⇐ 'set-backend-service' Policy Statement
2018-01-16, 5658👍, 0💬
Popular Posts:
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy ...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...