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/transform-api.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: dlepow
6
6
ms.service: api-management
7
7
ms.custom: mvc, devdivchpfy22
8
8
ms.topic: tutorial
9
-
ms.date: 03/15/2022
9
+
ms.date: 07/30/2024
10
10
ms.author: danlep
11
11
---
12
12
@@ -30,7 +30,7 @@ In this tutorial, you learn how to:
30
30
> * Protect an API by adding a rate limit policy (throttling)
31
31
> * Test the transformations
32
32
33
-
:::image type="content" source="media/transform-api/api-management-console-new.png" alt-text="Policies in portal":::
33
+
:::image type="content" source="media/transform-api/api-management-console-new.png" alt-text="Screenshot of API Management policies in the portal.":::
34
34
35
35
## Prerequisites
36
36
@@ -59,7 +59,7 @@ To see the original response:
59
59
60
60
The original API response should look similar to the following response:
61
61
62
-
:::image type="content" source="media/transform-api/test-original-response-new.png" alt-text="Original API response":::
62
+
:::image type="content" source="media/transform-api/test-original-response-new.png" alt-text="Screenshot of the original API response in the portal":::
63
63
64
64
As you can see, the response includes the **X-AspNet-Version** and **X-Powered-By** headers.
65
65
@@ -70,20 +70,23 @@ This example shows how to use the form-based policy editor, which helps you conf
1. In the **Outbound processing** section, select **+ Add policy**.
72
72
73
-
:::image type="content" source="media/transform-api/outbound-policy.png" alt-text="Navigate to outbound policy" border="false":::
73
+
:::image type="content" source="media/transform-api/outbound-policy-small.png" alt-text="Screenshot of navigating to outbound policy in the portal." lightbox="media/transform-api/outbound-policy.png":::
74
74
75
75
1. In the **Add outbound policy** window, select **Set headers**.
1. In the **Outbound processing** section, select the code editor (**</>**) icon.
109
112
110
-
:::image type="content" source="media/transform-api/outbound-policy-code.png" alt-text="Navigate to outbound policy code editor":::
113
+
:::image type="content" source="media/transform-api/outbound-policy-code.png" alt-text="Screenshot of navigating to outbound policy code editor in the portal.":::
111
114
112
115
1. Position the cursor inside the **`<outbound>`** element on a blank line. Then select **Show snippets** at the top-right corner of the screen.
113
116
114
-
:::image type="content" source="media/transform-api/show-snippets-1.png" alt-text="Select show snippets":::
117
+
:::image type="content" source="media/transform-api/show-snippets-1.png" alt-text="Screenshot of selecting show snippets in policy editor in the portal.":::
115
118
116
119
1. In the right window, under **Transformation policies**, select **Mask URLs in content**.
117
120
118
121
The **`<redirect-content-urls />`** element is added at the cursor.
119
122
120
-
:::image type="content" source="media/transform-api/mask-urls-new.png" alt-text="Mask URLs in content":::
123
+
:::image type="content" source="media/transform-api/mask-urls-new.png" alt-text="Screenshot of inserting mask URLs in content policy in the portal.":::
0 commit comments