In the following steps, we first download the Quickstart OpenAPI 2.0 Swagger file and then using the Data Sources page we import this yaml file into our project. This onboards four data sources:
Xapix has provided a demo file for use with this tutorial. Begin by downloading the following swagger file to a local drive, then continue with the next steps.
Let's import the REST OpenAPI 2.0 file. We do this using the Data Sources page. Currently, the project does not have any available data sources.
On the Data Source page, a number of options are provided. We want to onboard a REST data source by importing the Quickstart OpenAPI 2.0 file.
Let's click REST Data Source and then on the resultant page, import the scheme file we uploaded previously.
Once the import is successfully completed, a confirmation dialog appears. Any schema validation issues are provided.
The Data Sources page shows the new data sources you can use for the Quickstart tutorial.
From the Home menu, click Data Sources.
From the Data Sources page, click REST Data Source.
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, you should see the message "Schema was successfully imported".
The onboarded data sources now appear on the Data Source page.
To continue, see Create a REST endpoint.