Introduction

Oracle GoldenGate is a powerful real-time replication and data integration platform.With the release of Oracle GoldenGate Microservices Architecture (MA), Oracle introduced REST APIs for administrative tasks — such as configuring replication paths, managing extract/replicat processes, and monitoring statistics — without relying on the CLI or GUI.

If you’re developing automation scripts or integrating GoldenGate with external systems, you’ll likely need to test and explore these REST APIs. Postman and Swagger make this process easier:

  • Swagger: Swagger API is a set of open-source tools built around the OpenAPI Specification (formerly known as the Swagger Specification) that helps developers design, build, document, and consume REST APIs. It essentially provides a way to describe the structure of your API so that machines can understand it.
  • Postman: A popular API client for testing, automating, and sharing API requests.

Architecture

architecture

In this blog, we’ll cover:

  1. Enabling the GoldenGate REST API
  2. Accessing Swagger Documentation
  3. Importing Swagger into Postman
  4. Testing GoldenGate REST APIs in Postman

Prerequisites – Quick Checklist

Before we dive in, make sure you have these ready:

  1. GoldenGate is Up and Running
    • You’re using Oracle GoldenGate Microservices Architecture (21c or later).
    • It could be:
      • On-premises
      • Self-managed in the cloud
      • Or an OCI GoldenGate instance
  2. You Can Reach the REST API
    • Admin Service URL works in your browser, e.g.:

https://<host>:<port>/services/v2

    • No firewall/VPN is blocking access.
    • For OCI, make sure you can reach it directly or via bastion/VPN.
  1. Postman Ready to Go
    • Install Postman on your machine, or
    • Use Postman Web if you have online access.
  2. Your Login Details Handy
    • On-Prem → GoldenGate admin username & password (Basic Auth)
    • OCI → IAM credentials or API token
  3. Quick API Test (Optional but Recommended)
    • Try opening the API URL in your browser or run:

                          curl -u <username>:<password> https://<host>:<port>/services/v2/extracts

  •                   ​​​​​​​If you get a valid response, you’re good to go.

 

In this blog, we’ll explore how to use GoldenGate REST API commands for import using Swagger API, making it easier to automate and manage your data replication tasks.

Step 1: Download the GoldenGate REST API Swagger JSON

GoldenGate provides Swagger UI for each REST service. This is your interactive documentation.

1. To import the GoldenGate REST API into Postman, you’ll need to obtain the Swagger JSON file. Open a browser and go to the Oracle GoldenGate documentation home page and click on the REST API Reference under the Reference section.

GoldenGate Home Page Link

 

2. Click the Download icon → select Swagger.

swagger button

 

3. Copy the swagger json url. copy the swagger json

Step 2: Import Swagger JSON into Postman

1. Open Postmanpostman icon

2. Click Import (top-left corner).

import icon

 

3. Paste the Swagger JSON URL or upload the downloaded JSON file.paste swagget url

  4. Click Import.

default otpion

5. Postman will create a new collection named “Oracle GoldenGate 23ai Microservices Architecture REST API Documentation

postman collection

Step 3: Configure Postman Authorization & Variables

3.1 Set Up Authentication

  1. Open the collection settings in Postman.
  2. Go to the Authorization tab.
  3. Select Basic Auth.
  4. Enter:
    • Username = GoldenGate admin username (or OCI token)
    • Password = GoldenGate admin password
  5. Click Save.

auth parameter

3.2 Set Base URL Variable

  1. Go to the Variables tab in the collection.
  2. Add baseUrl as a variable.
  3. Set the Current Value to Admin Service url.
  4. Save changes.

baseURL


Step 4: Testing GoldenGate REST API in Postman

Now that Postman is configured, you can test GoldenGate endpoints.

In the Postman, follow the below sequence.

  • Click on the “Oracle GoldenGate 23ai Microservices Architecture REST API Documentation” Collection in the sidebar.
  • Select the GoldenGate REST API endpoint you want to run.
  • Pass the required argument , if required.
  • Click the “Run” button to run the REST endpoint.

 Example 1 — List Extract Processes

 Steps:

  1. In Postman, expand the Extract folder.
  2. Select List Extract.
  3. Click Send.

test rest api

 

Step 5: Best Practices

  • Use Postman Environments: Store credentials and URLs for DEV/TEST/PROD.
  • Organize by Service: Group APIs into Administration, Distribution, and Metrics.
  • Test in Swagger First: Quickly validate payloads in Swagger before importing into Postman.
  • Secure Credentials: Avoid storing passwords in plain text — use Postman’s secret environment variables.

Conclusion

Using Oracle GoldenGate REST APIs with Postman via Swagger gives you a clean, visual way to explore endpoints, understand request/response structures, and run replication management tasks — all without touching the command line.

With this setup, you can:

  • Quickly list, start, or stop Extract and Replicat processes.
  • Deploy and configure replication without manual parameter file edits.
  • Automate routine monitoring and admin actions through Postman collections or CI/CD pipelines.