In the datasource menu, create a new datasource and in the tab "Web Services & API", click on the "REST API" icon:
Then, you need to fill the fields required to obtain data from your API, such as:
- The method to use: GET or POST
- The path to the actual data in the obtained JSON
- The HTTP Headers
- ...
And you also have options to transform the data obtained from your API to a table format, such as:
- Flatten sub-objects to create new columns
- Flatten sub-arrays to create new rows
The exhaustive documentation for these options is available here:
REST API doc.
Once your API is configured, a data preview is displayed at the bottom of the config page. Then, you can build your dashboard using this datasource exactly as any other datasource.