Skip to content

Commit 7ec72ed

Browse files
authored
Merge pull request #262340 from dlepow/odatatest
[APIM] Odata API testing
2 parents 4ab9df5 + 11db36c commit 7ec72ed

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

articles/api-management/import-api-from-odata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66

77
ms.service: api-management
88
ms.topic: how-to
9-
ms.date: 06/06/2023
9+
ms.date: 01/03/2024
1010
ms.author: danlep
1111
ms.custom:
1212
---

includes/api-management-import-odata-metadata.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: dlepow
33
ms.service: api-management
44
ms.topic: include
5-
ms.date: 07/21/2023
5+
ms.date: 01/03/2024
66
ms.author: danlep
77
---
88
## Import OData metadata
@@ -18,20 +18,33 @@ ms.author: danlep
1818
1. Enter remaining settings to configure your API. These settings are explained in the [Import and publish your first API](../articles/api-management/import-and-publish.md#import-and-publish-a-backend-api) tutorial.
1919
1. Select **Create**.
2020

21-
The API is added to the **APIs** list. The entity sets and functions that are exposed in the OData metadata description appear on the API's **Schema** tab.
21+
The API is added to the **APIs** list. The entity sets and functions that are exposed in the OData metadata description appear on the API's **Entity sets and functions** tab.
2222

23-
:::image type="content" source="media/api-management-import-odata-from-metadata/odata-schema.png" alt-text="Screenshot of schema of OData API in the portal." :::
23+
:::image type="content" source="media/api-management-import-odata-from-metadata/odata-schema.png" alt-text="Screenshot of OData entity sets and functions in the portal." lightbox="media/api-management-import-odata-from-metadata/odata-schema.png" :::
2424

2525
## Update the OData schema
2626

2727
You can access an editor in the portal to view your API's OData schema. If the API changes, you can also update the schema in API Management from a file or an OData service endpoint.
2828

2929
1. In the [portal](https://portal.azure.com), navigate to your API Management instance.
3030
1. In the left menu, select **APIs** > your OData API.
31-
1. On the **Schema** tab, select the edit (**\</>**) icon.
31+
1. On the **Entity sets and functions** tab, select the context menu (**...**) next to an entity set or function, and select **Edit**.
32+
33+
:::image type="content" source="media/api-management-import-odata-from-metadata/edit-schema.png" alt-text="Screenshot of context menu for an OData entity set in the portal." lightbox="media/api-management-import-odata-from-metadata/edit-schema.png":::
34+
3235
1. Review the schema. If you want to update it, select **Update from file** or **Update schema from endpoint**.
3336

34-
:::image type="content" source="media/api-management-import-odata-from-metadata/odata-schema-update.png" alt-text="Screenshot of schema editor for OData API in the portal." :::
37+
:::image type="content" source="media/api-management-import-odata-from-metadata/odata-schema-update.png" alt-text="Screenshot of schema editor for OData API in the portal." lightbox="media/api-management-import-odata-from-metadata/odata-schema-update.png":::
38+
39+
## Test your OData API
40+
41+
1. In the left menu, select **APIs** > your OData API.
42+
1. On the **Entity sets and functions** tab, select the context menu (**...**) next to an entity set or function, and select **Test**.
43+
44+
:::image type="content" source="media/api-management-import-odata-from-metadata/test-entity.png" alt-text="Screenshot of Test option on context menu for an OData entity set in the portal." lightbox="media/api-management-import-odata-from-metadata/test-entity.png":::
45+
46+
1. In the test console, enter template parameters, query parameters, and headers for your test, and select **Test**. [Learn more](../articles/api-management/import-api-from-oas.md#test-the-new-api-in-the-portal) about testing an API in the portal.
47+
3548

3649
## Secure your OData API
3750

52.6 KB
Loading
63.3 KB
Loading
-9.55 KB
Loading
-14 KB
Loading
63.3 KB
Loading

0 commit comments

Comments
 (0)