Xapix internal API

You can upload schema files using Xapix's internal API.

For example, the following curl command is used to upload a schema file.

curl -i -X POST \
-F "uploaded_file=@/###YOUR_LOCAL_FILE_PATH_TO_SCHEMA###/schema.yaml" \
-F "access_token=<your access token>" \
-F "import_type=json_to_json" \
-F "schema_type=openapi-2-0" \
-H "Accept: application/json" \
"https://cloud.xapix.io/api/v1/projects/<my-org>/<my-project>/full_schema_imports"

In the curl command, you replace the following placeholder text with the path to the schema flle.

###YOUR_LOCAL_FILE_PATH_TO_SCHEMA###

Xapix then inserts the access token and path.

The data sources are then added and appear in the list of data sources for your project.