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/api-management/add-api-manually.md
+18-18Lines changed: 18 additions & 18 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
2
title: Manually Add an API by Using the Azure Portal | Microsoft Docs
3
-
description: Learn how to use Azure API Management in the Azure portal to manually add an API.
3
+
description: Learn how to use Azure API Management in the Azure portal to manually add an API. Add and test various operations.
4
4
services: api-management
5
5
author: dlepow
6
6
@@ -53,18 +53,18 @@ This section shows how to add a `/get` operation to map it to the backend `http:
53
53
### Add an operation
54
54
55
55
1. Select the API you created in the previous step.
56
-
2. Select **+ Add operation**.
57
-
3. In **URL**, select **GET** and enter **/get** in the text box.
58
-
4. In **Display name**, enter **FetchData**.
59
-
5. Select **Save**.
56
+
1. Select **+ Add operation**.
57
+
1. In **URL**, select **GET** and enter **/get** in the text box.
58
+
1. In **Display name**, enter **FetchData**.
59
+
1. Select **Save**.
60
60
61
61
### Test the operation
62
62
63
63
Test the operation in the Azure portal. (You can also test it in the developer portal.)
64
64
65
65
1. Select the **Test** tab.
66
-
2. Select **FetchData**.
67
-
3. Select **Send**.
66
+
1. Select **FetchData**.
67
+
1. Select **Send**.
68
68
69
69
The response that the `http://httpbin.org/get` operation generates appears in the **HTTP response** section. If you want to transform your operations, see [Transform and protect your API](transform-api.md).
70
70
@@ -75,18 +75,18 @@ This section shows how to add an operation that takes a parameter. In this examp
75
75
### Add an operation
76
76
77
77
1. Select the API that you created earlier.
78
-
2. On the **Design** tab, select **+ Add operation**.
79
-
3. In **URL**, select **GET** and enter **/status/{code}** in the text box.
80
-
4. In **Display name**, enter **GetStatus**.
81
-
5. Select **Save**.
78
+
1. On the **Design** tab, select **+ Add operation**.
79
+
1. In **URL**, select **GET** and enter **/status/{code}** in the text box.
80
+
1. In **Display name**, enter **GetStatus**.
81
+
1. Select **Save**.
82
82
83
83
### Test the operation
84
84
85
85
Test the operation in the Azure portal. (You can also test it in the developer portal.)
86
86
87
87
1. Select the **Test** tab.
88
-
2. Select **GetStatus**. Under **code**, enter **200**.
89
-
3. Select **Send**.
88
+
1. Select **GetStatus**. Under **code**, enter **200**.
89
+
1. Select **Send**.
90
90
91
91
The response that the `http://httpbin.org/status/200` operation generates appears in the **HTTP response** section. If you want to transform your operations, see [Transform and protect your API](transform-api.md).
92
92
@@ -100,17 +100,17 @@ This section shows how to add a wildcard operation. A wildcard operation enables
100
100
### Add an operation
101
101
102
102
1. Select the API you created earlier.
103
-
2. On the **Desgin** tab, select **+ Add operation**.
104
-
3. In **URL**, select **GET** and enter **/*** in the text box.
105
-
4. In **Display name**, enter **WildcardGet**.
106
-
5. Select **Save**.
103
+
1. On the **Desgin** tab, select **+ Add operation**.
104
+
1. In **URL**, select **GET** and enter **/*** in the text box.
105
+
1. In **Display name**, enter **WildcardGet**.
106
+
1. Select **Save**.
107
107
108
108
### Test the operation
109
109
110
110
Test the operation in the Azure portal. (You can also test it in the developer portal.)
111
111
112
112
1. Select the **Test** tab.
113
-
2. Select **WildcardGet**. Try the GET operations that you tested in previous sections, or try a different supported GET operation.
113
+
1. Select **WildcardGet**. Try the GET operations that you tested in previous sections, or try a different supported GET operation.
114
114
115
115
For example, in **Template parameters**, change the value next to the wildcard (*) name to **headers**. The operation returns the incoming request's HTTP headers.
0 commit comments