Skip to content

Commit 9e9d899

Browse files
committed
edits
1 parent c06b530 commit 9e9d899

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

articles/api-management/mock-api-responses.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ To remove an operation, use the [az apim api operation delete](/cli/azure/apim/a
128128

129129
```azurecli
130130
az apim api operation delete --resource-group apim-hello-word-resource-group \
131-
--api-id test-api --operation-id 00000000000000000000000000000000 \
131+
--api-id test-api --operation-id <ID> \
132132
--service-name apim-hello-world
133133
```
134134

@@ -139,48 +139,39 @@ Keep this operation for use in the rest of this article.
139139
## Enable response mocking
140140

141141
1. Select the API you created in [Create a test API](#create-a-test-api).
142-
1. In the window on the right, ensure that the **Design** tab is selected.
142+
1. Ensure that the **Design** tab is selected.
143143
1. Select the test operation that you added.
144-
1. In the **Inbound processing** window, select **+ Add policy**.
144+
1. In the **Inbound processing** section, select **+ Add policy**.
145145

146-
:::image type="content" source="media/mock-api-responses/add-policy.png" alt-text="Add processing policy" border="false":::
146+
:::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":::
147147

148-
1. Select **Mock responses** from the gallery.
148+
1. Select the **Mock responses** tile from the gallery:
149149

150-
:::image type="content" source="media/mock-api-responses/mock-responses-policy-tile.png" alt-text="Mock responses policy tile" border="false":::
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":::
151151

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.
153153

154-
:::image type="content" source="media/mock-api-responses/set-mocking-response.png" alt-text="Set mocking response":::
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":::
155155

156156
1. Select **Save**.
157157

158158
> [!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.
160160
161161
## Test the mocked API
162162

163163
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:
166165

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":::
168167

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:
170169

171-
:::image type="content" source="media/mock-api-responses/http-response.png" alt-text="Mock HTTP response":::
170+
:::image type="content" source="media/mock-api-responses/http-response.png" alt-text="Screenshot that shows the mock HTTP response." lightbox="media/mock-api-responses/http-response.png":::
172171

173-
## Next steps
172+
## Next step
174173

175-
In this tutorial, you learned how to:
176-
177-
> [!div class="checklist"]
178-
> * Create a test API
179-
> * Add an operation to the test API
180-
> * Enable response mocking
181-
> * Test the mocked API
182-
183-
Advance to the next tutorial:
174+
Go to the next tutorial:
184175

185176
> [!div class="nextstepaction"]
186177
> [Transform and protect a published API](transform-api.md)

0 commit comments

Comments
 (0)