In Xapix, you onboard REST and SOAP connectors using several methods. This includes using OpenAPI files, schema URLs, Xapix internal APIs and HTTP methods/URL address. In this tutorial, we will use a OpenAPI 2.0 Swagger file.
In the following steps, we first download the Quickstart Swagger file and then using the Connectors page we import this file into our project. This onboards four REST connectors:
Xapix has provided a Quickstart demo file for use with this tutorial. It is a REST OpenAPI 2.0 Swagger file. Begin by downloading the following swagger file to a local drive, then continue with the next steps.
Currently, the project does not have any available connectors. So, let's import the Quickstart demo file. We do this using the Connectors page.
On the Connectors page, click New REST Connector to import the Quickstart OpenAPI 2.0 file.
Now, let's drop the Quickstart demo file on the import area on the right hand side, where it says Drop your OpenAPI 2.0 File or click here.
Once the import is successfully completed, a confirmation dialog appears and the new Connectors are grouped as shown in the screenshot below. Any schema validation issues or importing related issues are highlighted.
From the Home menu, click Connectors.
From the Connectors page, click New REST Connectors.
Click the Import icon and browse to the swagger file we downloaded previously. Then import the file into your project by clicking Open.
Xapix validates the schema file and if no validation errors were identified, the Connectors are imported, listed and ready to use.
To continue, see Create a REST endpoint.