Skip to content

Instantly share code, notes, and snippets.

@patrikbraborec
Created January 3, 2022 15:02
Show Gist options
  • Save patrikbraborec/598a1e360254bbbadccb8bf8e89bddef to your computer and use it in GitHub Desktop.
Save patrikbraborec/598a1e360254bbbadccb8bf8e89bddef to your computer and use it in GitHub Desktop.
$ curl http://localhost:3000/api/entities/dataSources \
-H "Content-Type: application/vnd.gooddata.api+json" \
-H "Accept: application/vnd.gooddata.api+json" \
-H "Authorization: Bearer YWRtaW46Ym9vdHN0cmFwOmFkbWluMTIz" \
-X POST \
-d '{
"data": {
"attributes": {
"name":"iot-online-shop-postgres",
"url": "jdbc:postgresql://postgres:5432/iot-online-shop-production",
"schema": "public",
"type": "POSTGRESQL",
"username": "admin",
"password": "admin"
},
"id": "iot-online-shop-postgres",
"type": "dataSource"
}
}' | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment