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
+12-10Lines changed: 12 additions & 10 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: In this tutorial, you use API Management to set a policy on an API. The policy returns a mocked response even if the backend 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 back end isn't available to send real responses.
4
4
5
5
author: dlepow
6
6
ms.service: azure-api-management
@@ -9,26 +9,28 @@ ms.topic: tutorial
9
9
ms.date: 03/24/2025
10
10
ms.author: danlep
11
11
12
+
13
+
#customer intent: As a developer, I want to set a policy on an API so that a mock response is returned.
Backend APIs are imported into an API Management (APIM) API or created and managed manually. The steps in this tutorial, show you how to:
20
+
Back-end APIs are imported into an Azure API Management API or created and managed manually. The steps in this tutorial describe how to:
19
21
20
-
+ Use API Management to create a blank HTTP API
21
-
+Manage an HTTP API manually
22
-
+ Set a policy on an API so it returns a mocked response
22
+
+ Use API Management to create a blank HTTP API.
23
+
+Manually manage an HTTP API.
24
+
+ Set a policy on an API so that it returns a mock response.
23
25
24
-
This method lets developers continue with the implementation and testing of the API Management instance even if the backend 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 back end isn't available to send real responses.
The ability to mock up responses is useful in many scenarios:
30
+
The ability to create mock responses is useful in many scenarios:
29
31
30
-
+ When the API façade is designed first and the backend implementation comes later. Or, the backend is being developed in parallel.
31
-
+ When the backend is temporarily not operational or not able to scale.
32
+
+ When the API façade is designed first and the back-end implementation occurs later, or when the back end is being developed in parallel.
33
+
+ When the back end is temporarily not operational or unable to scale.
32
34
33
35
In this tutorial, you learn how to:
34
36
@@ -38,7 +40,7 @@ In this tutorial, you learn how to:
38
40
> * Enable response mocking
39
41
> * Test the mocked API
40
42
41
-
:::image type="content" source="media/mock-api-responses/mock-api-response-02.png" alt-text="Mocked API response":::
43
+
:::image type="content" source="media/mock-api-responses/mock-api-response-02.png" alt-text="Screenshot that shows the APIs page in the Azure portal." lightbox="media/mock-api-responses/mock-api-response-02.png":::
0 commit comments