Skip to content

Commit c06b530

Browse files
committed
edits
1 parent e2c4875 commit c06b530

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,59 +44,59 @@ In this tutorial, you learn how to:
4444

4545
## Prerequisites
4646

47-
+ Learn the [Azure API Management terminology](api-management-terminology.md).
48-
+ Understand the [concept of policies in Azure API Management](api-management-howto-policies.md).
49-
+ Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md).
47+
+ Learn [API Management terminology](api-management-terminology.md).
48+
+ Understand the [concept of policies in API Management](api-management-howto-policies.md).
49+
+ Complete the quickstart [Create an Azure API Management instance](get-started-create-service-instance.md).
5050

5151
## Create a test API
5252

53-
The steps in this section show how to create an HTTP API with no backend.
53+
The steps in this section show how to create an HTTP API with no back end.
5454

5555
1. Sign in to the Azure portal, and then navigate to your API Management instance.
56-
1. Select **APIs** > **+ Add API** > **HTTP** tile.
56+
1. Select **APIs** > **+ Add API** > **HTTP** tile:
5757

58-
:::image type="content" source="media/mock-api-responses/http-api.png" alt-text="Define a HTTP API":::
58+
:::image type="content" source="media/mock-api-responses/http-api.png" alt-text="Screenshot that shows the first steps for defining an API." lightbox="media/mock-api-responses/http-api.png":::
5959

6060
1. In the **Create an HTTP API** window, select **Full**.
61-
1. Enter *Test API* for **Display name**.
62-
1. Select **Unlimited** for **Products**.
63-
1. Ensure that **Managed** is selected for **Gateways**.
61+
1. In **Display name**, enter *Test API*.
62+
1. In **Products**, select **Unlimited**.
63+
1. Ensure that **Managed** is selected in **Gateways**.
6464
1. Select **Create**.
6565

66-
:::image type="content" source="media/mock-api-responses/create-http-api.png" alt-text="Create an HTTP API":::
66+
:::image type="content" source="media/mock-api-responses/create-http-api.png" alt-text="Screenshot that shows the Create an HTTP API window.":::
6767

6868
## Add an operation to the test API
6969

70-
An API exposes one or more operations. In this section, you'll add an operation to the HTTP API you created. Calling the operation after completing the steps in this section triggers an error. After you complete the steps in the [Enable response mocking](#enable-response-mocking) section, you'll get no errors.
70+
An API exposes one or more operations. In this section, you add an operation to the HTTP API you created. Calling the operation after completing the steps in this section triggers an error. After you complete the steps in the [Enable response mocking](#enable-response-mocking) section, you won't get an error.
7171

7272
### [Portal](#tab/azure-portal)
7373

74-
1. Select the API you created in the previous step.
74+
1. Select the API that you created in the previous step.
7575
1. Select **+ Add Operation**.
76-
1. In the **Frontend** window, enter the following values.
76+
1. In the **Frontend** window, enter the following values:
7777

78-
:::image type="content" source="media/mock-api-responses/frontend-window.png" alt-text="Frontend window":::
78+
| Setting | Value | Description |
79+
|------|------|-----------------------------------------|
80+
| **Display name** | *Test call* | The name that's displayed in the [developer portal](api-management-howto-developer-portal.md). |
81+
| **URL** (HTTP verb) | GET | Select one of the predefined HTTP verbs. |
82+
| **URL** | */test* | A URL path for the API. |
83+
| **Description** | | An optional description of the operation. It provides documentation in the developer portal to the developers who use the API. |
7984

80-
| Setting | Value | Description |
81-
|---------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
82-
| **Display name** | *Test call* | The name that is displayed in the [developer portal](api-management-howto-developer-portal.md). |
83-
| **URL** (HTTP verb) | GET | Select one of the predefined HTTP verbs. |
84-
| **URL** | */test* | A URL path for the API. |
85-
| **Description** | | Optional description of the operation, used to provide documentation in the developer portal to the developers using this API. |
85+
:::image type="content" source="media/mock-api-responses/frontend-window.png" alt-text="Screenshot that shows the Frontend window." lightbox="media/mock-api-responses/frontend-window.png":::
8686

87-
1. Select the **Responses** tab, located under the URL, Display name, and Description fields. Enter settings on this tab to define response status codes, content types, examples, and schemas.
88-
1. Select **+ Add response**, and select **200 OK** from the list.
87+
1. Select the **Responses** tab, which is located under the **URL**, **Display name**, and **Description** boxes. Enter values on this tab to define response status codes, content types, examples, and schemas.
88+
1. Select **+ Add response**, and then select **200 OK** from the list.
8989

90-
:::image type="content" source="media/mock-api-responses/add-response.png" alt-text="Add response to the API operation":::
90+
:::image type="content" source="media/mock-api-responses/add-response.png" alt-text="Screenshot that shows the Responses tab." lightbox="media/mock-api-responses/add-response.png":::
9191

92-
1. Under the **Representations** heading on the right, select **+ Add representation**.
93-
1. Enter *application/json* into the search box and select the **application/json** content type.
94-
1. In the **Sample** text box, enter `{ "sampleField" : "test" }`.
92+
1. In the **Representations** section, select **+ Add representation**.
93+
1. Enter *application/json* into the search box and then select the **application/json** content type.
94+
1. In the **Sample** box, enter `{ "sampleField" : "test" }`.
9595
1. Select **Save**.
9696

97-
:::image type="content" source="media/mock-api-responses/add-representation.png" alt-text="Add representation to the API operation":::
97+
:::image type="content" source="media/mock-api-responses/add-representation.png" alt-text="Screenshot that shows the Representations section." lightbox="media/mock-api-responses/add-representation.png":::
9898

99-
Although not required for this example, you can configure more settings for an API operation on other tabs, including:
99+
Although it's not required for this example, you can configure more settings for an API operation on other tabs, as described in the following table:
100100

101101
|Tab |Description |
102102
|---------|---------|

0 commit comments

Comments
 (0)