Connect from Cube Cloud
Navigate to the Integrations page, click Connect to Cube, and choose Budibase to get detailed instructions.Connect from Cube Core
You can connect a Cube deployment to Budibase using the REST API. For a Cube instance publicly available at a specificHOST, the REST API URL
would be HOST/cubejs-api/v1. Please refer to the
REST API page for details.
You will also need to generate a JSON Web Token that would be used to
authenticate requests to Cube.
Please check the Security page
to learn how to generate a token. We suggest generating a long-lived JWT that
won’t expire soon.
Connecting from Budibase
Create a new data source
Create a new “REST API” data source in Budibase.Add a query
Click ”+ Add Query”. Copy and paste the Cube REST API, including the/load path, in the API field.
Make sure to select “POST” as the request.
query
parameter for your JSON query.
OrdersByMonth.
Lastly, click the “save” button and hit “send” to test the API and get a
response back.
Create a data provider
Move to the Design section and open the Components. First, add a Data Provider. Select the query from above. In this sample it’s calledOrdersByMonth.
Display the data
Add a chart into the data provider. Next, configure the data provider for the chart. Make sure it’s set to the data provider you just created. Then, you set the “label column” and “data columns”. In this sample you can setOrders.createdAt as the label column and Orders.count as the data columns.