<< < 37 38 39 40 41 42 43 44 45 46 47 > >>   Sort: Rank

Create New Instances of a Class
How to Create a New Instance of a Class? There are two ways to create a new instance (object) of a class (or type): 1. The short way: Call the class name as the class constructor function with the following syntax. It will return an instance of the given class. &gt;&gt;&gt; x = class_nam...
2018-01-27, 2532🔥, 0💬

Manage and Use Class Properties
How to manage and use class properties? Class properties, also called class attributes, are name value pairs associated with class "type" object, and shared among all instances (objects) created from this class. You can manage and use class properties in various places: 1. In the class definition st...
2018-01-27, 1406🔥, 0💬

What Is Class Method
What is class method in Python? Class methods are functions defined inside the class definition statement block. You can call to execute a class method in two formats: 1. Calling the method with the class name in the dot (.) expression format: class_name.method_name(...). For example, &gt;&g...
2018-01-27, 1400🔥, 0💬

Where Are Class Properties Stored
Where Are Class Properties Stored? Class properties are stored in a built-in property called "__dict__" in class "type" object. The "__dict__" property is inherited from the base class "object" and managed by the Python engine. If you ever forget what class properties are associated with a class, yo...
2018-01-27, 1270🔥, 0💬

'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, 20628🔥, 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, 12565🔥, 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, 9979🔥, 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, 3003🔥, 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, 2414🔥, 0💬

'find-and-replace' Policy Statement
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and-replace" Policy Statement allows you to find and replace a sub string in the request body or response body. For example, the following inbound policy will replace "$id" by the template parameter "id"...
2018-01-19, 4773🔥, 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, 2846🔥, 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: &lt;choose&gt; &lt;...
2018-01-19, 2840🔥, 0💬

'forward-request' Policy Statement
How to use the "forward-request" Policy Statement to call the backend service for an Azure API service operation? The "forward-request" Policy Statement allows you to call the backend service, using information provided in the "context.Request" object. The "forward-request" Statement has the followi...
2018-01-16, 7138🔥, 0💬

'rewrite-uri' Policy Statement
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? 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:...
2018-01-16, 6784🔥, 0💬

'retry' Policy Statement
How to use the "retry" Policy statement to retry "forward-request" multiple times for an Azure API service operation? The "retry" Policy Statement allows you to mainly execute "forward-request" statement multiple times if it fails. The "forward-request" Statement has the following syntax: &lt;re...
2018-01-16, 2526🔥, 0💬

'set-method' Policy Statement
How to use the "set-method" Policy Statement for an Azure API service operation? The "set-method" Policy Statement can be used to modify the HTTP verb when Azure forwarding the client request to the backend Web service. By default, Azure uses the save HTTP verb as client request received at the Azur...
2018-01-16, 1483🔥, 0💬

'mock-response' Policy Statement
How to use the "mock-response" Policy statement to return an example response for an Azure API service operation? The "mock-response" Policy Statement allows you to return a fake response and stop the Azure API processing immediately. The "mock-response" Statement has the following syntax: &lt;m...
2018-01-16, 1417🔥, 0💬

'send-one-way-request' Policy Statement
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API service operation? The "send-one-way-request" Policy Statement allows you to call an extra web service. The "send-request" statement has the following syntax: &lt;send-request mode="new|copy"&...
2018-01-13, 4048🔥, 0💬

'return-response' Policy Statement
How to use the "return-response" Policy statement to build the response from scratch for an Azure API service operation? The "return-response" Policy Statement allows you to stop the Azure API processing immediately and return with the given response. The "forward-request" statement can be used in t...
2018-01-13, 3919🔥, 0💬

'send-request' Policy Statement
How to use the "send-request" Policy statement to call an extra web service for an Azure API service operation? The "send-request" Policy Statement allows you to call an extra web service and store the response in a given variable. The "send-request" statement has the following syntax: &lt;send-...
2018-01-13, 3002🔥, 0💬

'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation? The "wait" Policy Statement allows you to make multi-threading calls to external systems. The "wait" statement has the following syntax: &lt;wait for="all|any"&gt; &lt;send-request .....
2018-01-13, 1440🔥, 0💬

'set-status' Policy Statement
How to use the "set-status" Policy statement to modify the response status for an Azure API service operation? The "set-status" Policy Statement allows you to change the status code of the response. For example, the following outbound policy changes the status code of the response to 401: &lt;ou...
2018-01-13, 1321🔥, 0💬

What Is RSS (Rich Site Summary)
What Is RSS (Rich Site Summary)? RSS (Really Simple Syndication) is a type of Web syndication or feed in XML format which allows users to access updates of a Website in a standardized format. RSS originally called RDF (Resource Description Framework) Site Summary. RSS is also called Rich Site Summar...
2018-01-08, 2493🔥, 0💬

Download RSS Specification
How to download RSS 2.0 Specification? You can follow this tutorial to download RSS 2.0 specification: 1. Go to RSS Specification page . 2. Use the browser "Save As" function to save a copy to your computer.   ⇒ RSS specifications ⇐ MIME Type Definition for RSS Files ⇑ Introduction of RSS ⇑⇑ RSS F...
2018-01-08, 1819🔥, 0💬

<< < 37 38 39 40 41 42 43 44 45 46 47 > >>   Sort: Rank