Creating a REST API from an imported Swagger document
To create a REST API in IBM® Integration Bus, you can import a Swagger document by using the IBM Integration Toolkit.
Before you begin
About this task
Procedure
To create a REST API by importing a Swagger document, complete the following steps:
- Open the Create a REST API wizard by clicking .
- Enter a name for the REST API. The name that you specify is used as the name of the project in the IBM Integration Toolkit.
- Select Import resources and operations defined in a Swagger document and then click Next.
- Select the path to the Swagger document
that describes the resources and operations that you want in the REST
API. You can import the Swagger document from the file system or from an existing project in the workspace.The file is validated for use in a REST API. If any errors are found while the selected Swagger document is validated, those validation errors are displayed at the top of the wizard. You cannot proceed if validation errors are found in the selected Swagger document.
- Optional: To review the list of resources and operations that are contained in the selected Swagger document, click Next.
- To finish creating the REST API, click Finish.
The REST API Description for the new REST API opens automatically, which you can use to implement operations as described in Implementing an operation in a REST API.