Using the Primavera Gateway API
Step 1: Install and configure Primavera Gateway for the API
As a prerequisite to using the API, you will need to install Primavera Gateway, configure a user with the appropriate security access in the WebLogic application server and in the application. Oracle Web Services Manager (OWSM) must be set up and enabled before you can use the API to connect to Primavera Gateway.
Step 2: Decide on a client technology
Decide on the client technology that you will use with Primavera Gateway to invoke REST style services. Java and JavaScript are examples of technologies that can invoke REST style services to interact with the Primavera Gateway API.
Step 3: Use the API to interact with Primavera Gateway
This step involves interacting with the API using the following URL patterns to send requests to the API.
Basic Authentication
http://<hostName>:<portNumber>/gatewayapi/restapi/v1/<service>
SSL Authentication
https://<hostName>:<portNumber>/gatewayapi/restapi/v1/<service>
Generally, calls to the API will:
- Establish a session and get a session ID.
- Use the session ID to invoke other operations as required by your program.
- Delete the session ID when you are finished.