Skip to content

Commit 5a0c307

Browse files
committed
draft complete
1 parent 96512c2 commit 5a0c307

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed
-22.6 KB
Loading
-109 KB
Loading
-181 KB
Loading
-10.8 KB
Loading
-14.5 KB
Loading
-9.53 KB
Loading

articles/api-management/transform-api.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Tutorial - Transform and protect your API in Azure API Management | Microsoft Docs
2+
title: Tutorial - Transform and protect your API in Azure API Management
33
description: In this tutorial, you learn how to protect your API in API Management with transformation and throttling (rate-limiting) policies.
44

55
author: dlepow
@@ -14,7 +14,7 @@ ms.author: danlep
1414

1515
[!INCLUDE [api-management-availability-all-tiers](../../includes/api-management-availability-all-tiers.md)]
1616

17-
In this tutorial, you'll learn about configuring common [policies](api-management-howto-policies.md) to transform your API. You might want to transform your API so it doesn't reveal private backend info. Transforming an API can help you hide the technology stack info that's running in the backend, or hide the original URLs that appear in the body of the API's HTTP response.
17+
In this tutorial, you learn about configuring common [policies](api-management-howto-policies.md) to transform your API. You might want to transform your API so it doesn't reveal private backend info. Transforming an API can help you hide the technology stack info that's running in the backend, or hide the original URLs that appear in the body of the API's HTTP response.
1818

1919
This tutorial also explains how to add protection to your backend API by configuring a rate limit policy, so that the API isn't overused by developers. For more policy options, see [API Management policies](api-management-policies.md).
2020

@@ -114,7 +114,7 @@ In this example, you use the policy code editor to add the policy XML snippet di
114114

115115
1. Position the cursor inside the **`<outbound>`** element on a blank line. Then select **Show snippets** at the top-right corner of the screen.
116116

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.":::
117+
:::image type="content" source="media/transform-api/show-snippets-1.png" alt-text="Screenshot of selecting show snippets in outbound policy editor in the portal.":::
118118

119119
1. In the right window, under **Transformation policies**, select **Mask URLs in content**.
120120

@@ -131,17 +131,17 @@ This section shows how to add protection to your backend API by configuring rate
131131
1. Select **Demo Conference API** > **Design** > **All operations**.
132132
1. In the **Inbound processing** section, select the code editor (**</>**) icon.
133133

134-
:::image type="content" source="media/transform-api/inbound-policy-code.png" alt-text="Navigate to inbound policy":::
134+
:::image type="content" source="media/transform-api/inbound-policy-code.png" alt-text="Screenshot of navigating to inbound policy code editor in the portal.":::
135135

136136
1. Position the cursor inside the **`<inbound>`** element on a blank line. Then, select **Show snippets** at the top-right corner of the screen.
137137

138-
:::image type="content" source="media/transform-api/show-snippets-2.png" alt-text="Set inbound policy" border="false":::
138+
:::image type="content" source="media/transform-api/show-snippets-2.png" alt-text="Screenshot of selecting show snippets in inbound policy editor in the portal.":::
139139

140140
1. In the right window, under **Access restriction policies**, select **Limit call rate per key**.
141141

142142
The **`<rate-limit-by-key />`** element is added at the cursor.
143143

144-
:::image type="content" source="media/transform-api/limit-call-rate-per-key.png" alt-text="Select limit call rate per key":::
144+
:::image type="content" source="media/transform-api/limit-call-rate-per-key.png" alt-text="Screenshot of inserting limit call rate per key policy in the pportal":::
145145

146146
1. Modify your **`<rate-limit-by-key />`** code in the **`<inbound>`** element to the following code. Then select **Save**.
147147

@@ -181,9 +181,9 @@ The rest of this section tests policy transformations that you set in this artic
181181
1. Select **Demo Conference API** > **Test**.
182182
1. Select the **GetSpeakers** operation and select **Send**.
183183
184-
As you can see, the headers have been stripped:
184+
As you can see, the headers were stripped:
185185
186-
:::image type="content" source="media/transform-api/stripped-response-headers.png" alt-text="Stripped response headers":::
186+
:::image type="content" source="media/transform-api/stripped-response-headers.png" alt-text="Screenshot showing stripped response headers in the portal.":::
187187
188188
### Test the replaced URL
189189
@@ -192,7 +192,7 @@ The rest of this section tests policy transformations that you set in this artic
192192
193193
As you can see, the URLs are replaced.
194194
195-
:::image type="content" source="media/transform-api/test-replaced-url.png" alt-text="Replaced URLs":::
195+
:::image type="content" source="media/transform-api/test-replaced-url.png" alt-text="Screenshot showing replaced URLs in the portal.":::
196196
197197
### Test the rate limit (throttling)
198198
@@ -201,7 +201,7 @@ The rest of this section tests policy transformations that you set in this artic
201201
202202
After sending the request three times, you get the **429 Too Many Requests** response.
203203
204-
:::image type="content" source="media/transform-api/test-throttling-new.png" alt-text="Too many requests":::
204+
:::image type="content" source="media/transform-api/test-throttling-new.png" alt-text="Screenshot showing Too Many Requests in the response in the portal.":::
205205
206206
1. Wait for 15 seconds or more and then select **Send** again. This time you should get a **200 OK** response.
207207

0 commit comments

Comments
 (0)