Accessing Veridata REST APIs over HTTP
To generate the authentication token to access the APIs:
curl -v 'http://localhost:8830/veridata/v1/auth/login' --digest -u veridata:Welcome@123
Examples:
Create
Connection
curl --location --request POST 'http://localhost:8830/veridata/v1/services/configuration/connections' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"name": "JCT-D1",
"host": "100.11.11.237",
"port": "7890",
"dbType": "ORACLE",
"ssl": "false",
"username": "ordsuser",
"password": "oracle"
}'
Get
Connection
curl --location --request GET 'http://localhost:8830/veridata/v1/services/configuration/connections/1035' \
--header 'Authorization: Bearer {{token}}'