Available from the Enterprise plan.
This integration allows you to connect an external data source to your Zyllio application. This external system must expose a REST API, which is the current standard for data exchange between systems.
This integration enables you to query, create, and update external data.
Configurations
It is necessary to provide the configurations for your REST integrations from the Settings tab, then Integrations.
Enable the REST integration by clicking on Enable
configuration des configurations REST
Zyllio allows you to define as many REST configurations as needed. A REST configuration enables you to set the parameters for the REST service (Endpoint URL, Headers, etc.).
For example:
A first integration with XANO A second integration with BigQuery A third integration with Instagram Defining a REST Configuration
Click on the + button to add a configuration.
The following parameters are required:
Example of a REST Configuration
Triggering a REST Request
Actions are available in the REST section of the action editor. There is one action for each type of request: GET, PATCH, PUT, POST, DELETE
Query Request
The Get Request action allows you to query an external data source.
Example of a GET request that relies on the Retrieve memes configuration
The following parameters are available:
Response Expression
A response expression allows you to select the data you want to extract from the JSON response.
The following public REST service: returns this JSON structure. {
"success":true,
"data": {
"memes": [{
"id": "0",
"name": "Drake Hotline Bling",
"url": "https://i.imgflip.com/30b1gx.jpg"
},{
"id": "1",
"name": "Two Buttons",
"url": "https://i.imgflip.com/1g8my4.jpg"
}]
}
}
A response expression allows you to select only the data that the mobile application needs.
Creation Request
The Post Request action allows the REST service to create a data or data structure.
Update Request
The Put Request action allows the REST service to update a data or data structure.
Delete Request
The Delete Request action allows the REST service to delete a data or data structure.
Partial Update Request
The Patch Request action allows the REST service to update a single property of a data. It is not necessary to provide all the properties of that data.
Display a REST Data
Simple Data
The data stored by the REST action can be simple, especially through the use of a response expression. For example: 'Paris', 'True', or 123.
In this case, the component on the screen can refer to this data directly.
LabelText displays the name of a meme
Structured Data
The data stored by the REST action can be structured and can contain properties, for example, a meme with all its properties: id, name, and url.
In this case, a formula that uses the JSON Query function allows you to select the properties to display.
Below, the LabelText component calls a formula that uses the JSON Query function. This function defines two properties:
Here is the screen in operation in the simulator.
Once the REST request is executed, the JSON Query function can be used as many times as needed without generating additional REST requests.