简体中文
Create a db connection url
cURL
curl --request POST \ --url https://app.teable.cn/api/base/%7BbaseId%7D/connection \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: application/json' \ --data '{"baseId":"string"}'
{ "dsn": { "driver": "<string>", "host": "<string>", "port": 123, "db": "<string>", "user": "<string>", "pass": "<string>", "params": {} }, "connection": { "max": 123, "current": 123 }, "url": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Connection created successfully
The response is of type object.
object