Skip to main content

Deploy an API Catalog to an API Gateway

Instead of entering the Path, Method, and Target by hand, you can use an API in the catalog to quickly create Routes and Upstreams on an API Gateway. There are 3 ways:

WayUse when
Map to Route (API Deploy tab)You want to deploy only some endpoints of the API.
Deploy to gateway (⋮ menu in the list)You want to deploy the whole API without selecting each endpoint.
Create Upstream from API Catalog (Upstream creation screen)You want to create an Upstream with the Target pre-filled from the server list in the spec.

Create a Route from some endpoints​

Step 2Open the API details and select the API Deploy tab
1 / 4
Step 2: Open the API details and select the API Deploy tab

Click the image to zoom in.

To create a Route from the endpoints you select, follow these steps:

  1. In the left menu, select API Gateway → API Catalog.

  2. Click the Name of the API, then select the API Deploy tab.

  3. Select one or more endpoints. The toolbar at the top shows the number of selected endpoints, a Clear button to clear the selection, and a Map to Route (merge N) button, where N is the number of selected endpoints.

API Deploy tab with an endpoint selected and the Map to Route button

  1. Click Map to Route (merge N). The Create Route screen opens, with HTTP Methods and Paths in the Routing Rules section pre-filled from the selected endpoints.
warning

If the selected endpoints do not share a common path prefix (for example a mix of /pet, /store/order, and /user), the system cannot merge them into one Path and asks you to enter Paths manually.

  1. Complete the remaining steps (Basic Information, Backend Target, Timeout, Review) in the same way as when you create a Route manually.

Create a Route from the whole API​

Step 2Click ⋮ → Deploy to gateway on the API row
1 / 2
Step 2: Click ⋮ → Deploy to gateway on the API row

Click the image to zoom in.

To create a Route from all endpoints of an API, follow these steps:

  1. In the left menu, select API Gateway → API Catalog.

  2. On the row of the API you want to deploy, click ⋮ → Deploy to gateway.

⋮ menu with the Deploy to gateway and Delete actions

The Create Route screen opens, with all endpoints of the API already merged into Routing Rules. You do not need to open the API detail screen first.

  1. Complete the remaining steps in the same way as when you create a Route manually.

Create an Upstream from the API Catalog​

On the Create Upstream screen, click Create Upstream from API Catalog, then select an API in the Select API Catalog form. The system pre-fills the Target from the server list in the spec of the API and sets Scheme from the protocol of the server URL.

Create Upstream screen with the Create Upstream from API Catalog button and the Select API Catalog form

For the detailed steps and the note about Target Address, see Create an Upstream from the API Catalog.

Next steps​

Last updated on