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, 5747👍, 0💬
Popular Posts:
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...
What Is session_register() in PHP? session_register() is old function that registers global variable...
How to write a policy to set and get custom variables? Here is a policy that sets and gets custom va...
What Happens If One Row Has Missing Columns? What happens if one row has missing columns? Most brows...
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...