Use the web user interface to create or update a definition for one or more deployed REST
APIs in IBM® API Connect.
Before you begin
Complete the following tasks:
- Register or update credentials for the API owner with IBM API Connect:
- If you intend to stage the REST API to a catalog, ensure that the IBM API Connect server has a catalog to which you can stage a product that
includes the REST API. If a current version of the REST API exists in the catalog, staging a new
version of the REST API unpublishes the current version and changes it to staged state.
- Ensure that any firewalls allow the following connections:
- IBM App Connect Enterprise can connect to the IBM API Connect server by using HTTPS.
- The IBM API Connect server can connect to the integration server by
using HTTP or HTTPS.
- Create a REST API in the IBM App Connect
Enterprise Toolkit; see Creating a REST API.
- Deploy the REST API to the integration server; see Packaging and deploying a REST API.
About this task
You can use the IBM App Connect Enterprise web user interface to push one or more
REST APIs to IBM API Connect. If the REST API definition exists on the
IBM API Connect system, you replace the REST API definition with the
new definition of your REST API.
Procedure
To push one or more REST APIs to IBM API Connect, complete the
following steps.
-
In the web user interface, click the Open List of Options icon for the
required integration server.
- If you are viewing all the available servers under the Servers tab, the
Open List of Options icon appears within the tile for each integration
server.
- If you are viewing the content of an integration server under the
Contents tab, the Open List of Options icon appears in
the title bar for the integration server.
- Click Share REST APIs to API Connect.
The
Push REST APIs to API Connect dialog box opens for you to define your
connection to the IBM API Connect system.
- Select the version of the IBM API Connect system that you
are connecting to.
You can choose from Version 5, Version 2018, or Version
10.
- Enter the connection details for the IBM API Connect management cluster or server in the
Host and Port fields.
- For Version 5, enter the values of the host and port for the IBM API Connect management server or cluster.
- For Version 2018 or Version 10, enter the
values of the host and port for the IBM API Connect management server
or cluster.
- Enter your credentials for accessing the IBM API Connect
system.
Note:
If the IBM API Connect environment is configured with self-signed
certificates, or if the certificate configuration does not match the domain of the IBM API Connect environment, the first stage of the Push REST
APIs to API Connect process fails. If you select Disable certificate
verification when connecting, App Connect Enterprise ignores the errors.
- After you enter your credentials, click Connect to API
Connect.
A connection is established to the IBM API Connect server and
you are prompted to specify the target organization, product, and catalog.
- Select the target organization where you want to push the REST APIs.
The
Organization menu shows a list of organizations on the IBM API Connect server to which you have access.
- Specify the name of the product that you want to update or create, then click
Continue.
You can specify an existing product or you can create a
new product. Specify the title, name, and version of the product. If you want to stage the product,
specify the name of the catalog in which you want it to be staged.
Available REST
APIs are listed.
- Select the REST APIs that you want to push to IBM API Connect and add to the product, then click Continue.
You are
given the option to specify the endpoint that IBM API Connect uses to
call the REST API that is hosted by App Connect Enterprise.
- Choose to either override the hostname and port number that are used by
IBM API Connect to call the pushed APIs, or allow IBM API Connect to call the APIs directly.
If you choose to
override the hostname and port number, you can specify HTTP proxy details, HTTPS proxy details, or both.
- To complete the process of pushing the REST APIs to IBM API Connect
by using the web user interface, click Push APIs.
- Optionally, you can copy the properties that you set through the web user interface to the
clipboard, in command format, by clicking Copy command. You can then use this
output to modify and run the mqsipushapis command to push the
REST APIs to IBM API Connect. For more information, see Pushing REST APIs to IBM API Connect by using the mqsipushapis command.
- You can view progress as the selected REST APIs are pushed to IBM API Connect.
- If an API definition exists on the IBM API Connect server, the
existing definition is replaced by the definition of your REST API. If no API definition exists on
the server, a new API definition is created for your REST API.
- If the specified product exists, it is updated. If the specified product does not exist, a new
product is created.
- If a catalog is selected, the product is staged in the catalog.
- Click individual tasks to see a detailed breakdown of the progress of each task.
When the REST APIs are pushed to IBM API Connect, close the
wizard by clicking Done.
Results
Your REST API definition is created or updated on the IBM API Connect server.