Using cURL
Set up your environment and create your first report for Oracle Prime using the API by performing the following steps.
Step 1: Obtain Account Information
From your account administrator, obtain the appropriate account credentials to enable you to manage reports using the APIs. Specifically, you will need:
- Username and password for Oracle Prime
- The URL of your Oracle Prime instance
Step 2: Install cURL
The examples within this topic use the cURL command-line tool to demonstrate how to access the Oracle Prime API.
To connect securely to the server, you must install a version of cURL that supports SSL and provide an SSL certificate authority (CA) certificate file or bundle to authenticate against the Verisign CA certificate. See also:
To install cURL on a Windows 64-bit system:
You are now ready to send requests to the Oracle Prime using cURL.
Step 3: Fetch Report Details
Run this cURL command to return an existing report definition:
curl --u username:password -H "Accept:application/json" -X GET http://<hostName>:<portNumber>/primeapi/restapi/v<release level>/<service>
For example, to fetch a project object by its project ID:
curl --u jsmith:mypassword1 -H "Accept:application/json" -X GET
http://<server>:<port>/primeapi/restapi/v16.2/project/{id}