You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/connectors/connectors-native-http-swagger.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Connect to REST endpoints from Azure Logic Apps
3
-
description: Connect to REST endpoints from automated workflows in Azure Logic Apps.
2
+
title: Call or connect to REST endpoints from workflows
3
+
description: Learn how to call or connect to REST endpoints from workflows in Azure Logic Apps.
4
4
services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: estfan, azla
@@ -9,15 +9,15 @@ ms.date: 11/01/2019
9
9
tags: connectors
10
10
---
11
11
12
-
# Call REST endpoints by using Azure Logic Apps
12
+
# Call REST endpoints from workflows in Azure Logic Apps
13
13
14
-
With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the built-in **HTTP + Swagger** operation, you can create automated integration workflows that regularly call any REST endpoint through a [Swagger file](https://swagger.io). The **HTTP + Swagger** trigger and action work the same as the [HTTP trigger and action](connectors-native-http.md) but provide a better experience in the workflow designer by exposing the API structure and outputs described by the Swagger file. To implement a polling trigger, follow the polling pattern that's described in [Create custom APIs to call other APIs, services, and systems from logic app workflows](../logic-apps/logic-apps-create-api-app.md#polling-triggers).
14
+
With the built-in **HTTP + Swagger** operation and [Azure Logic Apps](../logic-apps/logic-apps-overview.md), you can create automated integration workflows that regularly call any REST endpoint through a [Swagger file](https://swagger.io). The **HTTP + Swagger** trigger and action work the same as the [HTTP trigger and action](connectors-native-http.md) but provide a better experience in the workflow designer by exposing the API structure and outputs described by the Swagger file. To implement a polling trigger, follow the polling pattern that's described in [Create custom APIs to call other APIs, services, and systems from logic app workflows](../logic-apps/logic-apps-create-api-app.md#polling-triggers).
15
15
16
16
## Prerequisites
17
17
18
18
* An account and Azure subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19
19
20
-
* The URL for the Swagger (not OpenAPI) file that describes the target REST endpoint that you want to call
20
+
* The URL for the Swagger file (OpenAPI 2.0, not OpenAPI 3.0) that describes the target REST endpoint that you want to call
21
21
22
22
Typically, the REST endpoint has to meet the following criteria for the trigger or action to work:
23
23
@@ -30,9 +30,11 @@ With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the built-in *
30
30
The examples in this topic use the [Cognitive Services Face API](../cognitive-services/face/overview.md), which requires a [Cognitive Services account and access key](../cognitive-services/cognitive-services-apis-create-account.md).
31
31
32
32
> [!NOTE]
33
-
> To reference a Swagger file that's unhosted or that doesn't meet the security and cross-origin requirements, you can [upload the Swagger file to a blob container in an Azure storage account](#host-swagger), and enable CORS on that storage account so that you can reference the file.
33
+
> To reference a Swagger file that's unhosted or that doesn't meet the security and cross-origin requirements,
34
+
> you can [upload the Swagger file to a blob container in an Azure storage account](#host-swagger), and enable
35
+
> CORS on that storage account so that you can reference the file.
34
36
35
-
* The logic app workflow from where you want to call the target endpoint. To start with the **HTTP + Swagger** trigger, create a blank logic app workflow. To use the HTTP + Swagger action, start your workflow with any trigger that you want. This example uses the **HTTP + Swagger** trigger as the first step.
37
+
* The logic app workflow from where you want to call the target endpoint. To start with the **HTTP + Swagger** trigger, create a blank logic app workflow. To use the **HTTP + Swagger** action, start your workflow with any trigger that you want. This example uses the **HTTP + Swagger** trigger as the first step.
36
38
37
39
If you're new to logic app workflows, review [What is Azure Logic Apps?](../logic-apps/logic-apps-overview.md) and [how to create your first logic app workflow](../logic-apps/quickstart-create-first-logic-app-workflow.md).
38
40
@@ -66,7 +68,7 @@ This built-in trigger sends an HTTP request to a URL for a Swagger file that des
66
68
67
69
1. To add other available parameters, open the **Add new parameter** list, and select the parameters that you want.
68
70
69
-
For more information about authentication types available for HTTP + Swagger, see[Add authentication to outbound calls](../logic-apps/logic-apps-securing-a-logic-app.md#add-authentication-outbound).
71
+
For more information about authentication types available for HTTP + Swagger, review[Add authentication to outbound calls](../logic-apps/logic-apps-securing-a-logic-app.md#add-authentication-outbound).
70
72
71
73
1. Continue building your workflow with actions that run when the trigger fires.
72
74
@@ -106,7 +108,7 @@ This built-in action sends an HTTP request to the URL for the Swagger file that
106
108
107
109
1. To add other available parameters, open the **Add new parameter** list, and select the parameters that you want.
108
110
109
-
For more information about authentication types available for HTTP + Swagger, see[Add authentication to outbound calls](../logic-apps/logic-apps-securing-a-logic-app.md#add-authentication-outbound).
111
+
For more information about authentication types available for HTTP + Swagger, review[Add authentication to outbound calls](../logic-apps/logic-apps-securing-a-logic-app.md#add-authentication-outbound).
110
112
111
113
1. When you're finished, remember to save your logic app workflow. On the designer toolbar, select **Save**.
112
114
@@ -145,9 +147,9 @@ This section provides more information about the outputs from an **HTTP + Swagge
145
147
146
148
| Property name | Type | Description |
147
149
|---------------|------|-------------|
148
-
| headers |object| The headers from the request |
149
-
| body |object| The object with the body content from the request |
150
-
| status code |int| The status code from the request |
150
+
|**headers**|Object| The headers from the request |
151
+
|**body**|Object| The object with the body content from the request |
152
+
|**status code**|Integer| The status code from the request |
0 commit comments