Example - integrate a reporting application
Imagine that you have a primary web application with a Postgres database and that you want to integrate a reporting system. Assume you’ve installed IntegrateDB and bootstrapped a root user. You then start by creating a
Stakeholderrepresenting your secondary reporting application:curl -X POST -H "..." -d '{"name": "reporter"}' /api/v1/stakeholdersThis creates a Postgres database user (
reporter) with access scoped to its own private DDL schema (reporter.*) and returns the database user credentials in the response data:{ "data": { "credentials": { "username": "reporter", "password": "... randomly generated ...", } } }Save the credentials (somewhere safe!) and provide them to your reporting application as the database user and password it should use to connect directly to the Postgres database.
Unless I misunderstood you want to give the user and password to a client in the web to access the database directly?
Also, the cURL request can be done from a client in the internet?






















