Create a REST endpoint

Xapix provides several ways of making endpoints. Using the Create new REST Endpoint button on the Project dashboard, you select an HTTP method and provide a path for the endpoint. Xapix provides a method to automatically generate an endpoint from a data source.

As we have create our Quickstart tutorial data sources, let's just use one of them to quickly create an endpoint. For example, using the data source findEngineByID, the following endpoint is automatically created.

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

Each data source on the Available Data Sources page includes a dropdown menu that includes an option to automatically create a mapping with a data source. This means Xapix creates a request and an endpoint that are mapped to the data source.

Create mapping using a data source

Xapix automatically generates a pipeline that includes an endpoint using the data source.

New pipeline

A key feature of the Pipeline dashboard is using drag and drop to map attributes in one unit to parameters in another unit. You simply drag an attribute from a unit over to a placeholder for a parameter in a second unit.

Step

Description

1

Click Data Sources from the Home menu. This lists the available data sources to your project.

2

Locate the data source findEngineById in the list of data sources.

3

Click the down arrow at the end of a data source row to reveal the Options menu for the selected data source.

4

Click Create mapping with Data Source. Xapix then generates an endpoint and a pipeline.

Next step
Next step

To continue, see View mappings.