Database connections
Create a database connection
Mock APIs
Teams
Organisations
Data sources
Database connections
Usage
Access control
Stub Mappings
- GETGet all stub mappings
- POSTCreate a new stub mapping
- DELDelete all stub mappings
- POSTReset stub mappings
- POSTPersist stub mappings
- POSTImport stub mappings
- GETGet stub mapping by ID
- PUTUpdate a stub mapping
- DELDelete a stub mapping
- POSTFind stub mappings matching metadata
- POSTDelete stub mappings matching metadata
Requests
OpenAPI
Imports
Database connections
Create a database connection
POST
/
v1
/
users
/
{userId}
/
database-connections
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
Body
application/json
The name of the connection, for display purposes.
The name of the database.
The SQL flavour of the database.
Available options:
POSTGRESQL
, MYSQL
, SQLSERVER
, ORACLE
The host name or address of the database.
The password of the user to connect to the database as.
The port number of the database.
The name of the user to connect to the database as.
Response
201 - application/json
The name of the connection, for display purposes.
The name of the database.
The SQL flavour of the database.
Available options:
POSTGRESQL
, MYSQL
, SQLSERVER
, ORACLE
The host name or address of the database.
The ID of the connection.
The port number of the database.
The name of the user to connect to the database as.