Use cURL
The examples within this document use cURL to demonstrate how to access the GoldenGate Veridata REST API.
Task 1: Install cURL
To use cURL to access the Oracle GoldenGate Veridata REST API, install cURL. See, Quick Start.
Task 2: Invoke cURL
Invoke cURL and specify one or more of the command-line options defined in the following table, as required, to direct its execution.
cURL Option | Description |
---|---|
-d, --data @file.json | Identifies the request document, in JSON format, on the local machine. |
-F, --form @file.json | Identifies form data, in JSON format, on the local machine. |
-H | Defines one or both of the following:
|
-i | Displays response header information. |
-u, --user <username>:<password> | Specifies the user name and password for the <ProductName> account. |
-X | Indicates the type of request (for example, GET, POST). |
For example:
curl -H "Authorization: Bearer <token>" -X GET http://<host>:<port>/path/resource-path