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
:::image type="content" source="media/mock-api-responses/add-policy.png" alt-text="Screenshot that shows the first steps for enabling response mocking." lightbox="media/mock-api-responses/add-policy.png" border="false":::
147
147
148
-
1. Select **Mock responses** from the gallery.
148
+
1. Select the **Mock responses**tile from the gallery:
:::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**textbox, type **200 OK, application/json**. This selection indicates that your API should return the response sample you defined in the previous section.
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.
:::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":::
155
155
156
156
1. Select **Save**.
157
157
158
158
> [!TIP]
159
-
> A yellow bar with the text **Mocking is enabled**displays. This indicates that the responses returned from API Management are mocked by the [mocking policy](mock-response-policy.md) and aren't produced by the backend.
159
+
> A yellow bar displaying the text **Mocking is enabled**appears. This message indicates that the responses returned from API Management are mocked by the [mocking policy](mock-response-policy.md) and aren't produced by the back end.
160
160
161
161
## Test the mocked API
162
162
163
163
1. Select the API you created in [Create a test API](#create-a-test-api).
164
-
1. Select the **Test** tab.
165
-
1. Ensure that the **Test call** API is selected, and then select **Send** to make a test call.
164
+
1. On the **Test** tab, ensure that the **Test call** API is selected, and then select **Send** to make a test call:
166
165
167
-
:::image type="content" source="media/mock-api-responses/test-mock-api.png" alt-text="Test the mocked API":::
166
+
:::image type="content" source="media/mock-api-responses/test-mock-api.png" alt-text="Screenshot that shows the steps for testing the mocked API." lightbox="media/mock-api-responses/test-mock-api.png":::
168
167
169
-
1. The **HTTP response** displays the JSON provided as a sample in the first section of the tutorial.
168
+
1. The **HTTP response** displays the JSON provided as a sample in the first section of the tutorial:
0 commit comments