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
+8-8Lines changed: 8 additions & 8 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: Tutorial - Mock API responses in API Management - Azure portal | Microsoft Docs
3
-
description: Use Azure API Management to set a policy on an API. The policy returns a mock response even if the back end isn't available to send real responses.
3
+
description: Use Azure API Management to set a policy on an API. The policy returns a mock response even if the backend isn't available to send real responses.
Back-end APIs are imported into an Azure API Management API or created and managed manually. The steps in this tutorial describe how to:
20
+
Backend APIs are imported into an Azure API Management API or created and managed manually. The steps in this tutorial describe how to:
21
21
22
22
+ Use API Management to create a blank HTTP API.
23
23
+ Manually manage an HTTP API.
24
24
+ Set a policy on an API so that it returns a mock response.
25
25
26
-
This method enables developers to continue with the implementation and testing of the API Management instance even if the back end isn't available to send real responses.
26
+
This method enables developers to continue with the implementation and testing of the API Management instance even if the backend isn't available to send real responses.
@@ -60,7 +60,7 @@ The steps in this section show how to create an HTTP API with no back end.
60
60
1. In the **Create an HTTP API** window, select **Full**.
61
61
1. In **Display name**, enter *Test API*.
62
62
1. In **Products**, select *Unlimited*, if that value is available. This value is available only in some tiers. You can leave the value blank for this tutorial, but you need to associate the API with a product to publish it. For more information, see [Import and publish your first API](import-and-publish.md#import-and-publish-a-backend-api).
63
-
1.Ensure that **Managed** is selected in **Gateways**.
63
+
1.In **Gateways**, select **Managed**if this option is available. (This option is avaiable only in certain service tiers.)
64
64
1. Select **Create**.
65
65
66
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":::
@@ -154,7 +154,7 @@ az apim api operation delete --resource-group <resource-group-name> \
154
154
1. Select **Save**.
155
155
156
156
> [!TIP]
157
-
> 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.
157
+
> 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 backend.
0 commit comments