Test your project

Once you publish your project, Xapix generates a cURL command (and a Powershell command) so you can test your endpoint locally, as shown in the example below.

Copy cURL command

Copy the cURL command and run in a terminal. For example, this is the command from this project.

curl
--header 'Content-Type: application/json'
--request GET 'https://api.xapix.dev/1st-org/my-first-project/xapix-io-api-data/vehicle-demo/engines/547290.json'

The request to the endpoint returns the following response.

{
"fuel_type":"Diesel",
"manufacturer":"Remedy Engines",
"power_hp":"180",
"price":"4800.0"
}

And that's it! Congratulations.

You should now have a good idea of how to use Xapix to onboard data sources, how mappings between pipeline units are made and how to publish and test the endpoint.