To work with transactions, execute requests using the "resources" API method (before executing the request determine user token):
Transactions list:
curl '<IP address or DNS name of server>/api/v1/resources/<data source resource name>/transactions/' -H "Authorization: Bearer <user token>"
Example of response:
[
{
"uuid": "2ce0e9a5-5ffa-654b-cee0-1238041fb31a",
"status": "processed",
"response": ""
},
{
"uuid": "a9d1db9e-dd17-460a-9739-a1f199de4c15",
"status": "unprocessed",
"response": "Error contacting server PostgreSQL"
}
]
Transaction response:
curl '<IP address or DNS name of server>/api/v1/resources/<data source resource name>/transactions/<UUID>/' -H "Authorization: Bearer <user token>"
Example of response:
{
"uuid": "2ce0e9a5-5ffa-654b-cee0-1238041fb31a",
"status": "processed",
"response": ""
}
Delete transaction information:
curl -v -X DELETE '<IP address or DNS name of server>/api/v1/resources/<data source resource name>/transactions/<UUID>/' -H "Authorization: Bearer <user token>"
Example of response:
204 Successful deletion of transaction information
See also: