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/mock-api-responses.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ The steps in this section show how to create an HTTP API with no back end.
59
59
60
60
1. In the **Create an HTTP API** window, select **Full**.
61
61
1. In **Display name**, enter *Test API*.
62
-
1. In **Products**, select **Unlimited**.
62
+
1. In **Products**, enter *Unlimited*.
63
63
1. Ensure that **Managed** is selected in **Gateways**.
64
64
1. Select **Create**.
65
65
66
-
:::image type="content" source="media/mock-api-responses/create-http-api.png" alt-text="Screenshot that shows the Create an HTTP API window.":::
66
+
:::image type="content" source="media/mock-api-responses/create-http-api.png" alt-text="Screenshot that shows the Create an HTTP API window." lightbox="media/mock-api-responses/create-http-api.png":::
67
67
68
68
## Add an operation to the test API
69
69
@@ -78,13 +78,13 @@ An API exposes one or more operations. In this section, you add an operation to
|**Display name**|*Test call*| The name that's displayed in the [developer portal](api-management-howto-developer-portal.md). |
81
-
|**URL** (HTTP verb) | GET | Select one of the predefined HTTP verbs. |
82
-
|**URL**|*/test*| A URL path for the API. |
81
+
|**URL** (first box) | GET | Select one of the predefined HTTP verbs. |
82
+
|**URL**(second box)|*/test*| A URL path for the API. |
83
83
|**Description**|| An optional description of the operation. It provides documentation in the developer portal to the developers who use the API. |
84
84
85
85
:::image type="content" source="media/mock-api-responses/frontend-window.png" alt-text="Screenshot that shows the Frontend window." lightbox="media/mock-api-responses/frontend-window.png":::
86
86
87
-
1. Select the **Responses** tab, which is located under the **URL**, **Display name**, and **Description** boxes. Enter values on this tab to define response status codes, content types, examples, and schemas.
87
+
1. Select the **Responses** tab, which is located under the **URL**, **Display name**, and **Description** boxes. You'll enter values on this tab to define response status codes, content types, examples, and schemas.
88
88
1. Select **+ Add response**, and then select **200 OK** from the list.
89
89
90
90
:::image type="content" source="media/mock-api-responses/add-response.png" alt-text="Screenshot that shows the Responses tab." lightbox="media/mock-api-responses/add-response.png":::
@@ -149,7 +149,7 @@ Keep this operation for use in the rest of this article.
149
149
150
150
:::image type="content" source="media/mock-api-responses/mock-responses-policy-tile.png" alt-text="Screenshot that shows the Mock responses tile." border="false":::
151
151
152
-
1.In the**API Management response**box, type **200 OK, application/json**. This selection indicates that your API should return the response sample that you defined in the previous section.
152
+
1.Ensure that**200 OK, application/json**appears in the **API Management response** box. This selection indicates that your API should return the response sample that you defined in the previous section.
153
153
154
154
:::image type="content" source="media/mock-api-responses/set-mocking-response.png" alt-text="Screenshot that shows the API Management response selection." lightbox="media/mock-api-responses/set-mocking-response.png":::
0 commit comments