curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/database-connections/{databaseConnectionId} \
--header 'Authorization: <api-key>'
{
"databaseConnection": {
"id": "abc123",
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"links": {
"self": "/v1/data-connections/abc123"
}
}
}
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/database-connections/{databaseConnectionId} \
--header 'Authorization: <api-key>'
{
"databaseConnection": {
"id": "abc123",
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"links": {
"self": "/v1/data-connections/abc123"
}
}
}
Success
The response is of type object
.