You can upload schema files using Xapix's internal API. It uses a cURL command that includes a path to the schema file of the Connector that is to be onboarded. For example, the following curl command is used to upload a schema file to a specific project within a specified organization.
curl -i -X POST \-F "[email protected]/###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, replace the following placeholder text with the path to the schema file.
Xapix then inserts the access token and path and then onboards the Connector to the project. It then appears in the list of Connectors for your project on the Connectors page of a project.