cURL
The examples within this document use cURL to demonstrate how to access the GoldenGate Veridata REST API.
Install cURL
To install cURL on a Linux system:
- Install curl using the terminal by running the command sudo apt-get install curl.
- Create /usr/local/share/ca-certificates directory, to copy the PEM files.
- Copy PEM files to the created directory.
- Integrate the certificates into the system's certificate set by running update-ca-certificates.
Understand the Resource URL Format
You access the Oracle GoldenGate Veridata
REST APIs using a URL, which includes the REST endpoint, the resource that you want to
access, and any query parameters that you want to include in your request.The basic endpoint
for the Oracle GoldenGate Veridata REST API
is:
https://<subdomain>.<domain>.com:<port>/veridata/v1/
cURL Parameters
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