Test the Endpoint

Now that we have published the project, let's go ahead and test our endpoint. We can use either a cURL command or a PowerShell command. We will use a cURL command.

Within the Use Endpoint box on the Pipeline dashboard, click the Copy icon to copy the cURL command

Copy cURL command

Below Publish Project is a preview of the command. Click cURL to generate a cURL command, the click the Copy icon.

The following has been formatted for readability.

curl \
--header 'Content-Type: application/json' \
--request GET \
'https://api.xapix.dev/1st-org/pipeline-tutorial/full-car/QLM_KROSUS_4_DOORS_LIMO'

Now, let's run the command in a terminal to get a response to the request.

Here is the response in a more readable form.

{
"model": {
"brand": "QLM",
"description": "Lore Ipsum donor set amet…",
"model": "Krosus"
},
"extras": [
"FULL_CASCO",
"LEATHER_SEATS_03"
],
"fuel_consumption_lkm": 12.6,
"variant_id": "QLM_KROSUS_4_DOORS_LIMO",
"base_price_EUR": 23456.78,
"engine": {
"fuel_type": "Diesel",
"manufacturer": "Remedy Engines",
"power_hp": 180,
"price": 4800.0
},
"topspeed_kmh": 220,
"model_id": 947432,
"engine_type_id": 547290,
"in_stock": true
}

HTTP Gateway Timeout: On a Xapix cloud instance, timeout is 1 minute for entire pipeline, including all data sources. Error is returned and pipeline aborted after timeout.

That's it. You have successfully built a pipeline using four onboarded data sources, set a request sample value, created connections and mappings between units and to the endpoint. You previewed and published the project, then tested it using a cURL command to obtain the response.