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 to test projectd

Step

Description

1

From the Home menu, click the endpoint:

xapix-io-api-data/vehicle-demo/engines/{engine_id}.json

2

In the Publish Project pane of the Pipeline dashboard, copy the cURL command.

3

Run the command in a terminal.

The request to the endpoint returns the following response.

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

This response is the result the path parameter value set to 547290, which causes the values of the attributes for engine_id to be returned.

Engine:
type: object
properties:
power_hp:
type: string
example: 180
fuel_type:
type: string
example: "Diesel"
manufacturer:
type: string
example: "Remedy Engines"
price:
type: string
example: 4800

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.