<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Rank

Azure API Policy XML Document Structure
What is the XML Document Structure of an Azure API service operation? Azure API Policy XML Document contains 4 policy blocks: "inbound" - Policy sub element to provide policy statements that controls the generation of the inbound HTTP request to be delivered to the backend service. "backend" - Polic...
2018-03-10, 324👍, 0💬

Policy Hierarchy and 'base' Statement
What are the relations among API policies defined at product level, API level, and operation level? Azure API Management allows you to define policies at 3 levels: Top Level policy - Policy defined at top level can be shared amount all APIs. You can use the "base" policy statement in the API policy ...
2018-03-10, 288👍, 0💬

json_last_error_msg() - PHP JSON Error Message
How to detect errors occurred in the json_decode() call? You can use the following two functions to detect error and display error message occurred during the last call of json_decode() or json_encode(). json_last_error() - Returns the error code occurred in the last json_decode() or json_encode() c...
2018-03-04, 517👍, 0💬

json_decode() - JSON Array to PHP Array
How to access elements from the PHP array returned from json_decode() on a JSON array? By default, json_decode() will convert a JSON Array to a PHP array with integer indexes of 0, 1, 2, ... There are different ways to access elements in the output PHP array: $array[i] - Returns the element of the g...
2018-03-04, 494👍, 0💬

json_decode() - JSON Object to PHP Object
How to access properties from the PHP object returned from json_decode() on a JSON object? By default, json_decode() will convert a JSON Object to a PHP object of the default class "stdClass". There are different ways to access properties in the output PHP object: $obj-&gt;property_name - Return...
2018-03-04, 473👍, 0💬

json_encode() Function in PHP
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed description of the json_encode() Function in PHP. Description - The json_encode() function generates a JSON text string that represents the given PHP value. Syntax - string json_encode ( mixed $value [, ...
2018-03-04, 444👍, 0💬

json_decode() - JSON Object to PHP Associative Array
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JSON Objects match better with PHP Associative Arrays than PHP Objects. You can force json_decode() function to turn return PHP Associative Arrays for any JSON Objects by giving the second argument as "...
2018-03-04, 442👍, 0💬

'while ... else' Repeating Statement Blocks
How to enter "while ... else" statement blocks in Python code? "while ... else" statement blocks allow you to execute the main statement block repeatedly. When "while ... else" statement blocks are interpreted, the "while" statement block will be executed repeatedly until the given condition returns...
2018-02-28, 454👍, 0💬

'while ... else' Repeating Statement Blocks
How to enter "while ... else" statement blocks in Python code? "while ... else" statement blocks allow you to execute the main statement block repeatedly. When "while ... else" statement blocks are interpreted, the "while" statement block will be executed repeatedly until the given condition returns...
2018-02-28, 454👍, 0💬

'def' - Function Definition Statements
How to use the "def" statement to define a new function in Python? You can use the "def" statement to define a new function in Python with the following syntax: def function_name(paramenter_list) :statement_block Here is a good example of "def" statement defining a function to generate Fibonacci ser...
2018-02-28, 340👍, 0💬

'def' - Function Definition Statements
How to use the "def" statement to define a new function in Python? You can use the "def" statement to define a new function in Python with the following syntax: def function_name(paramenter_list) :statement_block Here is a good example of "def" statement defining a function to generate Fibonacci ser...
2018-02-28, 340👍, 0💬

'break' Statement in Repeating Statement Blocks
How to use the "break" statement in a repeating statement block in Python code? The "break" statement can be used in a repeating statement block like "for" and "while" loops to terminate the loop immediately. When a "break" statement is interpreted, Python will terminate execution of the nearest "fo...
2018-02-28, 309👍, 0💬

'break' Statement in Repeating Statement Blocks
How to use the "break" statement in a repeating statement block in Python code? The "break" statement can be used in a repeating statement block like "for" and "while" loops to terminate the loop immediately. When a "break" statement is interpreted, Python will terminate execution of the nearest "fo...
2018-02-28, 309👍, 0💬

'return' Statement in Function Statement Block
How to use the "return" statement in a function statement block in Python? The "return" statement can be used in a function statement block to terminate the execution of the function and return a data object to the calling expression. Here is a good example of "return" statement used in a function s...
2018-02-28, 305👍, 0💬

'return' Statement in Function Statement Block
How to use the "return" statement in a function statement block in Python? The "return" statement can be used in a function statement block to terminate the execution of the function and return a data object to the calling expression. Here is a good example of "return" statement used in a function s...
2018-02-28, 305👍, 0💬

Function Calling Expressions
How to call a function in an expression in Python? To call a function and execute its statement block in an expression, you can enter the function name followed by a list of values to be assigned to parameters defined in the function. For example, the profile("Joe",25) expression calls the "profile(...
2018-02-28, 304👍, 0💬

Function Calling Expressions
How to call a function in an expression in Python? To call a function and execute its statement block in an expression, you can enter the function name followed by a list of values to be assigned to parameters defined in the function. For example, the profile("Joe",25) expression calls the "profile(...
2018-02-28, 304👍, 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, 513👍, 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&amp;name=value. ..format. For example, the following URL has two query string parameters: "date" and "s...
2018-02-14, 482👍, 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, 456👍, 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, 425👍, 0💬

Using the 'context' Object in Policy Expressions
How to use the built-in "context" object in Policy expressions? The built-in "context" object can be used any "@(...)" expressions or "@{...}" expression blocks. The "context" object allows you to access information related to Azure API operation through its properties and methods. Here are some exa...
2018-02-14, 341👍, 0💬

What Is Wrapper Function
What is a wrapper function in Python? A wrapper function in Python is a function that takes an old function as input parameter and returns a new function. The new function should have the same parameter list and return type. If you call the new function, it will perform the same task as the old func...
2018-02-08, 424👍, 0💬

Pass Function as Function Parameter
How to pass function objects as function parameters? You can pass function objects like any other types of objects as parameters of other functions. For example, &gt;&gt;&gt; def x(): ... print("Hello world!") ... &gt;&gt;&gt; def addVersion(f): ... f.version = "1.0" ... f.au...
2018-02-08, 377👍, 0💬

<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Rank