This tutorial shows you how to import an existing OpenAPI 2.0 definition.
Before you begin
Note: The Sandbox catalog must be configured to use either a
DataPower® Gateway (v5 compatible) or a
DataPower API Gateway or both. See
Creating and configuring catalogs.
If your Sandbox catalog uses a DataPower Gateway (v5 compatible), download the findbranch_v6.txt file to your local file system.
Rename this file findbranch.yaml.
Importing an API
To import an API, complete the following steps:
- Log in to the API
Manager UI.
- On the home page, click the Develop APIs and
Products tile.

- On the Develop page, click .

- Select OpenAPI 2.0.
- In the Import section, select Existing OpenAPI and
click Next.

- Click Drag and drop files here or click to upload.
- Select the findbranch.yaml file on your local file system and upload it.
Then click Next.

- The Summary page appears.
The new API is created. Leave the
Summary page open for the next step.
Note: The API cannot be executed unless
it is active.

Testing the imported API
To test the imported API, complete the following steps:
- In the Summary page, click Edit API
- On the Develop / findbranch page, click the Test tab
in the page header.
The imported FindBranch API already has a definition, which uses a single
policy called Invoke to execute the API. This API is ready to test.
- To activate the API, click Target Configuration.

- On the Preferences window, toggle Auto-publish to
set the API status to online.

- Click Send.

- If a No response received message appears, click Open the
server.

A new browser tab opens. If an error message appears, ignore it. Close
the new tab and return to the Test tab.
- Click Send again. View the response in the Response section.

What you did in this tutorial
In this tutorial, you completed the following activities:
- Imported an API definition.
- Tested an API.