This topic describes how to add an API data source in DataV. APIs are data interfaces used for interactions between multiple services. If you have available APIs, you can connect your API data sources to DataV.
Prerequisites
The API data source to be added is prepared.
Procedure
Go to the DataV console .
On the Visualizations page, move the pointer over the target visualization and click Edit.
ImportantIf you have not created a visualization application on the My Visualizations page, create a visualization application. For more information, see Create a visualization application on a PC by using a template.
On the canvas edit page, click a widget in the canvas.
If no widget is available on the canvas, add a widget first. For more information, see Add an asset.
In the right-side widget configuration panel, select Data and click Configure Data Source.
In the Set Data Source step, set Data Source Type to API.
Select a request method from the Request Method drop-down list. You can select GET or POST
In the URL edit box, enter the requested interface URL path.
According to the request method you selected in the request method, you can enter the corresponding request function value in the Header (Optional) and POST request parameters below.
Click Preview Results to view the returned results of the data source.