Using Swagger to Create a REST Reference

If you have the Swagger file, you can import it into TIBCO Business Studio and create a REST reference from it. At the time of the reference creation the service created using that Swagger file may or may not be running or even exist. But when the reference actually invokes the service, at the time of the invocation of the service by the reference, the service must be running and accessible to the reference process. References that are created using an imported Swagger file, cannot be modified in TIBCO Business Studio. You can only view the details of such a reference.

Prerequisites

The Swagger file must be imported into the Service Descriptors folder of the project. For Swagger files on your local machine you can import them by pointing the File Explorer to the location of the Swagger file, then dragging and dropping the file from the File Explorer into the Service Descriptors folder of your project. For Swagger files that reside on the cloud, you can use the API Explorer view to get the Swagger specifications that were created in API Modeler. To extract the Swagger file for a service running on the TIBCO Cloud Integration cloud, use the Cloud Applications view. Drag and drop the Swagger file into the Service Descriptors folder. See the API Explorer topic for details.
To create a REST reference from a Swagger file:
  1. Expand the .json file in the Service Descriptors folder in Project Explorer.
  2. Drag and drop an endpoint in the API from the Service Descriptors folder to the right boundary of the Process Editor.