Xapix internal API

Learn how to use you Xapix account's internal API to upload schemas

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

For example, the following curl command is used to upload a schema file. 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.

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"

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