Skip to main content

Documentation Portal

How to test if a connection to a data source is working correctly?

This article describes how to get a list of configured data sources for a specific connector.

To know if TrendMiner can successfully connect to the data source a test endpoint can be called. If for example the wrong credentials are configured for that data source, the test will fail.

GET /api/database/<id>/test

Where <id> is replaced by the id from the data source, which can be retrieved with the database API call.

test.png

The result of this call shows the data source details, which indicates the connection was successful. If the test is unsuccessful an error will be shown, indicating the cause of the failure.

failedtest.png