Integrating with Baserow

Integrating with Baserow

Gerar uma chave de API

Para acessar seus dados no baserow.io, você precisa gerar uma chave de API. Faça isso na página da sua conta em:


.
.
.

Set up the REST API direct integration data resource

You can view the full baserow.io API documentation by clicking in this link REST API documentation // Baserow or:

Captura de Tela (9)
.
.
.
Next, open the data configurator via the Data button in the global toolbar at the top, and create a new REST API direct integration data resource.

.
.
.

Resource URL

The resource URL will include the baserow.io base URL, your unique Table ID, and the target resource. It will look something like

https://api.baserow.io/api/database/rows/table/<ID>/?user_field_names=true

with <ID> replaced by your Table ID.

The easiest way to get the ID is to open the Baserow API documentation > REST API documentation // Baserow
.
.
Headers

Finally, we need to set up the Authorization header. As is typical for token-based authentication, the value takes the format Token your_api_key , so just replace your_api_key with your API key from the previous step.
.
.
Get (all) route configuration

Since our base configuration already matches the URL for getting a collection of records from the Stories endpoint (as is typical for REST APIs), we can simply head over to the Test tab and try it out.

Our initial test gets some data, but gives an Status -1:


.
.

To fix this, we go back over to the Config tab, enter results under the Response key path field, and try again. Now the API call succeeds, and we can use Set schema from response to finalize our integration.

After this, it’s simply the matter of adding a data variable for Baserow onto a page and making a view component repeat based on the fetched data.

Note that if you modify your schema in Baserow, you need to refresh the REST API direct integration resource’s schema too.