1 2 3 > >>   Sort: Date

'context.Request.Body' Request Body
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is the HTTP request body, which follows an empty line after request headers. You can access Request body from "context.Request.Body" object in any policy statements. This "context.Request.Body" object is ...
2018-01-24, 364👍, 0💬

Use Developer Portal Internally
How to use the Developer Portal internally by you as the publisher? Normally, the Developer Portal of an Azure API Management Service is used by client developers. But as a publisher, you can also use the Developer Portal to test API operations internally. You can follow this tutorial to access the ...
2017-09-20, 340👍, 0💬

Add API to API Products
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Management Service? You can follow this tutorial to add an API to an API product on the Publisher Portal of an Azure API Management Service. 1. Click API from the left menu on the Publisher Portal. You s...
2017-09-20, 320👍, 0💬

Using Azure API Management Developer Portal
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Using Azure API Management Developer Portal: Use Developer Portal Internally What Can I See on Developer Portal What I You T...
2017-09-20, 317👍, 0💬

Use & Sign in '@(...)' Expressions
How to enter & sign in '@(...)' expressions? & signs can be entered in '@(...)' expressions directly. For example, the following "set-variable" policy statement uses a "@(...)" expression that contains a & sign: <set-variable name="name" value="@("John & Sons")...
2017-11-12, 315👍, 0💬

Use '@(...)' Expressions in XML Attributes
When using "@(...)" expressions in XML attributes as part of an policy statement, do I need to worry about string quotations? If you are using a "@(...)" expression in XML attributes as part of an policy statement, and string literals are used in the "@(...)" expression, the syntax of the final poli...
2017-11-12, 308👍, 0💬

Use < Sign in '@(...)' Expressions
How to enter < sign in '@(...)' expressions? < signs can be entered in '@(...)' expressions directly. For example, the following "set-variable" policy statement uses a "@(...)" expression that contains a < sign as the Boolean operator: <set-variable name="isTrue" value="@...
2017-11-12, 305👍, 0💬

Use & in '@(...)' Expressions
How to enter & entity in '@(...)' expressions? If you want to enter the & sequence in a '@(...)' expressions, you must enter it as &. This is because all XML entities will be decoded immediately, when Azure process the policy XML document. For example, the fol...
2017-11-12, 301👍, 0💬

Using .NET CLR Types in Azure API Policy
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common Language Runtime) types into the API policy execution environment. Imported .NET CLR types can be used in any "@(...)" expressions or "@{...}" expression blocks. For example, the following "@{...}" e...
2018-01-24, 299👍, 0💬

'context.Request.MatchedParameters' URL Template Parameters
How to access URL template parameters from "context.Request.MatchedParame ters"object in Azure API Policy? URL template parameters are parameters used in the URL defined in the URL template: For example, the following URL template contains two template parameters, "cid", "oid" and "date": /customers...
2018-02-14, 295👍, 0💬

'context.Request.Url.Query' Query String Parameters
How to access Query String parameters from "context.Request.Url.Query" object in Azure API Policy? Query String parameters are parameters provided in the query string in the form of name=value&name=value. ..format. For example, the following URL has two query string parameters: "date" and "s...
2018-02-14, 284👍, 0💬

'choose ... when ...' Statements to Control Execution Flows
How to use 'choose ... when ..." policy statements to control execution flows? If you want to control execution flows in Azure API management process, you can use the 'choose ... when ..." policy statement. The "choose ... when ..." statement has the following syntax: <choose> <...
2018-01-19, 279👍, 0💬

'set-variable' Statement to Create Custom Variables
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service operation? The "set-variable" policy statement allows you to create custom variables with given values to be used later in other policy statements. The "set-variable" statement has the following syntax...
2018-01-24, 275👍, 0💬

'{{...}}' Liquid Codes in 'set-body' Policy Statement
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set-body" Policy Statement allows you to insert object properties of the original request in JSON format and object properties of the built-in "context" object. For example, the following "set-body" buil...
2017-12-04, 272👍, 0💬

'@{...}' Expression Blocks in Azure API Policy
How to use the "@{...}" expression block in Azure API Policy? The "@{...}" expression block in Azure API Policy can be used to include a C# statement block as the attribute value or text value in most policy statements. C# statement block in the "@{...}" expression block must end with a "return" sta...
2018-02-14, 271👍, 0💬

Dump Everything from 'context.Request'
How to build a test service operation to dump everything from the "context.Request" object in the response in Azure API Policy? If you want to build a test service operation to dump everything from the request to the response with an Azure API policy, you can follow this tutorial: 1. Go to the publi...
2018-01-24, 270👍, 0💬

Azure API Policy Examples
Where to find examples of API policy for Azure API Management Services at Azure Portal? Here is a list of examples of API policy for Azure API Management Services at Azure Portal: The Default Policy Policy to Echo the Request Body Only Policy to Set and Get Custom Variables   ⇒⇒Microsoft Azure API ...
2017-10-23, 270👍, 0💬

Policy to Set and Get Custom Variables
How to write a policy to set and get custom variables? Here is a policy that sets and gets custom variables: <!-- Set-Get-Variable-Policy.xml Copyright (c) FYIcenter.com --> <policies> <inbound> <set-variable name="version" value="1.11" /> &...
2017-10-23, 266👍, 0💬

Use Custom Variables in Policy Expressions
How to use custom variables created by "set-variable" statements in policy expressions? If you want to access custom variables created by "set-variable" statements, you can use the IReadOnlyDictionary object through "context.Variables". For example, the following policy creates a custom variable dur...
2018-01-24, 263👍, 0💬

'@(...)' Expressions in Azure API Policy
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy can be used to include a single C# expression as the attribute value or text value in most policy statements. When a "@(...)" expression is included in a policy statement, the C# expression will be ev...
2018-02-14, 262👍, 0💬

'trace' Policy Statement
How to use the "trace" Policy Statement for an Azure API service operation? The "trace" policy statement allows you to generate debugging messages into the API trace output. The "trace" statement can be used in any policy blocks in the policy XML document. The "trace" statement has the following syn...
2018-03-10, 257👍, 0💬

Policy to Echo the Request Body Only
How to write a policy to echo the request body only? Here is a policy that echoes the request body only: <!-- Echo-Policy.xml Copyright (c) FYIcenter.com --> <policies> <inbound> </inbound> <backend> </backend> &...
2017-10-23, 254👍, 0💬

Policy to Modify Request and Response Body
Where to find tutorials on creating Policy to Modify Request and Response Body on Azure API Management Policy? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on creating Policy to Modify Request and Request Body on Azure API Management Policy. 'f...
2018-01-19, 250👍, 0💬

'xsl-transform' Azure API Policy Statement
How to use "xsl-transform" Azure API Policy Statement? The "xsl-transform" Policy Statement allows you to apply an XSL transformation to XML in the body of the inbound request or outbound response. The "xsl-transform" Policy Statement uses the following syntax: <xsl-transform> <...
2017-12-04, 245👍, 0💬

1 2 3 > >>   Sort: Date