Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Azure/api-management-policy-snippets

Re-usable examples of Azure API Management policies
https://github.com/Azure/api-management-policy-snippets

Last synced: 2 months ago
JSON representation

Re-usable examples of Azure API Management policies

Awesome Lists containing this project

README

        

# Azure API Management Policy Snippets

# Examples

The `examples/` folder contains policy examples contributed by the product team and the user community. The samples are meant to be re-used verbatim, provide inspiration or serve as learning aids. Some of them are parameterized using [Named Values](https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties) (formerly known as Properties), which look like this: `{{some-value}}`. When using parametrized samples, you will have to either define relevant Named Values or replace them with values in place.

# Policy expressions cheat-sheet

The `policy-expressions` folder contains a [cheat-sheet](policy-expressions/README.md) with common policy expressions that are often used when authoring Azure API Management policies.

# Visual Studio Code snippets

The `vscode-snippets/` folder contains user snippets for Visual Studio Code. User snippets are helpful for streamlining workflow and simplifying document editing with autocomplete and easy navigation. Please, refer to the [Visual Studio Code documentation](https://code.visualstudio.com/docs/editor/userdefinedsnippets) on how to use them.

![Azure API Management VS Code User Snippet 1](media/vscode-snippets/apim-vscode-snippets-1.png)

![Azure API Management VS Code User Snippet 2](media/vscode-snippets/apim-vscode-snippets-2.png)

![Azure API Management VS Code User Snippet 3](media/vscode-snippets/apim-vscode-snippets-3.png)

# Helpful Links

- [Policies Reference](https://docs.microsoft.com/en-us/azure/api-management/api-management-policies)
- [Policy Expressions](https://docs.microsoft.com/en-us/azure/api-management/api-management-policy-expressions)
- [Handling Errors in Policies](https://docs.microsoft.com/en-us/azure/api-management/api-management-error-handling-policies)

To learn about Azure API Management go [here.](https://azure.microsoft.com/en-us/services/api-management/)

# Contributing

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.