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

  1. Log on to the DataV console.
  2. On the Projects tab, move the pointer over the project that you want to edit and click Edit.
  3. In Canvas Editor, click a widget on the canvas.

    If no widget is added to the canvas, add a widget first. For more information, see Add a widget.

  4. In the right-side configuration panel, click the Data tab and then Set.
    Data tab
  5. In the Set Data Source pane, select API from the Data Source Type drop-down list.
    Set Data Source pane
  6. Select a request method from the Request Method drop-down list. You can select GET or POST. .
  7. In the URL field, enter the URL of the API to be requested.
  8. Enter the request function values in Headers (Optional) and POST Request Parameter based on the selected request method.
  9. Click Preview Data Response to view the response style of the data source.