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
@@ -25,72 +27,66 @@ In this article, you learn how to:
25
27
> - Test the API in the Azure portal
26
28
27
29
> [!NOTE]
28
-
> API Management supports automated import of a Logic App (Consumption) resource. which runs in the multi-tenant Logic Apps environment. Learn more about [single-tenant versus multi-tenant Logic Apps](../logic-apps/single-tenant-overview-compare.md).
30
+
> Azure API Management supports automated import of a Logic App (Consumption) resource, which runs in the multitenant Logic Apps environment. For more information, see [Differences between Standard single-tenant logic apps and Consumption multitenant logic apps](../logic-apps/single-tenant-overview-compare.md).
29
31
30
32
## Prerequisites
31
33
32
-
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
33
-
- Make sure there is a Consumption plan-based Logic App resource in your subscription that exposes an HTTP endpoint. For more information, [Trigger workflows with HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md)
34
+
- Complete the quickstart [Create an Azure API Management instance](get-started-create-service-instance.md).
35
+
- Make sure there's a Consumption plan-based Logic App resource in your subscription that exposes an HTTP endpoint. For more information, see [Trigger workflows with HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md).
36
+
37
+
## <aname="create-api"> </a>Import and publish a backend API
1. Select **Browse** to see the list of Logic Apps that have HTTP trigger in your subscription. (Logic apps that don't have an HTTP trigger won't appear in the list.)
43
46
44
-
1. Press **Browse** to see the list of Logic Apps with HTTP trigger in your subscription.
45
-
* Logic apps *without* HTTP trigger will not appear in the list.
47
+
:::image type="content" source="./media/import-logic-app-as-api/browse-logic-apps.png" alt-text="Screenshot that shows the Browse button." lightbox="./media/import-logic-app-as-api/browse-logic-apps.png":::
46
48
47
-
:::image type="content" source="./media/import-logic-app-as-api/browse-logic-apps.png" alt-text="Browse for existing logic apps with correct trigger":::
49
+
1. Select the logic app:
48
50
49
-
1. Select the logic app.
51
+
:::image type="content" source="./media/import-logic-app-as-api/select-logic-app-import-2.png" alt-text="Screenshot that shows the Select Logic App to import window." lightbox="./media/import-logic-app-as-api/select-logic-app-import-2.png":::
API Management finds the swagger that's associated with the selected app, fetches it, and imports it.
52
54
53
-
1. API Management finds the swagger associated with the selected app, fetches it, and imports it.
54
-
1. Add an API URL suffix.
55
-
* The suffix uniquely identifies this specific API in this API Management instance.
55
+
1. Add an API URL suffix. The suffix uniquely identifies the API in the API Management instance.
56
56
57
-
:::image type="content" source="./media/import-logic-app-as-api/create-from-logic-app.png" alt-text="Finish up fields":::
57
+
:::image type="content" source="./media/import-logic-app-as-api/create-from-logic-app.png" alt-text="Screenshot that shows values entered in the Create from Logic App window." lightbox="./media/import-logic-app-as-api/create-from-logic-app.png":::
58
58
59
-
1. If you want the API to be published and available to developers, Switch to the **Full** view and associate it with a **Product**. We use the *"Unlimited"* product in this example.
60
-
* You can add your API to a product either during creation or later via the **Settings** tab.
59
+
1. If you want the API to be published and available to developers, switch to the **Full** view and associate the API with a **Product**. This example uses the *"Unlimited"* product. (You can add your API to a product when you create it or later via the **Settings** tab.)
61
60
62
61
>[!NOTE]
63
-
> Products are associations of one or more APIs offered to developers through the developer portal. First, developers must subscribe to a product to get access to the API. Once subscribed, they get a subscription key for any API in that product. As creator of the API Management instance, you are an administrator and are subscribed to every product by default.
62
+
> Products are associations of one or more APIs offered to developers via the developer portal. First, developers must subscribe to a product to get access to the API. After they subscribe, they get a subscription key for any API in the product. As creator of the API Management instance, you're an administrator and are subscribed to every product by default.
64
63
>
65
64
> Each API Management instance comes with two default sample products:
66
65
> -**Starter**
67
66
> -**Unlimited**
68
67
69
-
1. Enter other API settings.
70
-
* You can set these values during creation or later by going to the **Settings** tab. The settings are explained in the [Import and publish your first API](import-and-publish.md#import-and-publish-a-backend-api) tutorial.
68
+
1. Enter other API settings. You can set these values when you create the API or later by going to the **Settings** tab. The settings are explained in the [Import and publish your first API](import-and-publish.md#import-and-publish-a-backend-api) tutorial.
69
+
71
70
1. Select **Create**.
72
71
73
72
## Test the API in the Azure portal
74
73
75
-
Operations can be called directly from the Azure portal, which provides a convenient way to view and test the operations of an API.
74
+
You can call operations directly from the Azure portal. This method provides a convenient way to view and test the operations of an API.
76
75
77
-
:::image type="content" source="./media/import-logic-app-as-api/test-logic-app-api.png" alt-text="Test the logic app":::
76
+
:::image type="content" source="./media/import-logic-app-as-api/test-logic-app-api.png" alt-text="Screenshot that shows the steps for testing an API." lightbox="./media/import-logic-app-as-api/test-logic-app-api.png":::
78
77
79
-
1. Select the API you created in the previous step.
80
-
2. Press the **Test** tab.
81
-
3. Select the operation you want to test.
78
+
1. Select the API that you created in the previous step.
79
+
1. On the **Test** tab, select the operation that you want to test.
82
80
83
81
* The page displays fields for query parameters and headers.
84
-
* One of the headers is "Ocp-Apim-Subscription-Key", for the product subscription key associated with this API.
85
-
* As creator of the API Management instance, you are an administrator already, so the key is filled in automatically.
86
-
87
-
4. Press **Send**.
82
+
* One of the headers is `Ocp-Apim-Subscription-Key`. This header is for the product subscription key that's associated with the API.
83
+
* As creator of the API Management instance, you're an administrator, so the key is filled in automatically.
88
84
89
-
* When the test succeeds, the backend responds with **200 OK** and data.
85
+
1. Select **Send**. When the test succeeds, the backend responds with **200 OK** and data.
>Every Logic App has **manual-invoke** operation. To comprise your API of multiple logic apps and avoid collision, you need to rename the function. In order to rename the function/API, please navigate to the OpenAPI Specification editor and change the title value.
90
+
>Every Logic App has a `manual-invoke` operation. If you want to combine multiple logic apps in an API, you need to rename the function. To rename the function/API, change the title value in the OpenAPI Specification editor.
0 commit comments