Describe a custom connector with Postman
Postman is a tool for making your API development faster and easier. This tutorial demonstrates how to create a Postman collection, which you can then use to easily create Custom connectors in PowerApps.
- Install the Postman app
Let's build a Postman Collection for the Azure Cognitive Services Text Analytics API. This API identifies the language, sentiment, and key phrases in text that you pass to it.
The first step in creating a Postman Collection is to create a request. When creating the request, you can set the HTTP verb, the request URL, query or path parameters, headers, and the body. For more information, see Sending Requests in the Postman documentation. For the Detect Language API endpoint, set the values as follows:
Details of parameters and values used:
Parameter Value Verb POST Request URL https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/languages Params numberOfLanguagesToDetect Authorization “No Auth” Headers Ocp-Apim-Subscription-Key =
Content-Type = application/json
"text": "Hello World"
Click Send to make the request and get the response back.
Click Save to save the request into a Postman Collection.
Provide a Request name and Request description in the Save Request dialog box. You will use these values in your custom connector.
You can also save the response to the request. Custom connectors currently only support a single response per request. If you save multiple responses per request, only the first one is used.
Continue building your Postman Collection by creating and saving other requests and responses.
Once you have completed building the Postman Collection for all your requests and responses, export the collection.
Choose Collection v1 as the export format.
You can now use this Postman collection to create a custom connector in PowerApps. For more information, see Register and use custom connectors in PowerApps.