Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial demonstrates how to integrate an external WSO2 API Manager (APIM) with WSO2 G-Reg. 

...

WSO2 G-Reg implements Services (SOAP or REST) as configurable governance artifacts (RXT files)which you create using the G-Reg Publisher. Usually, you publish a service in WSO2 APIM using the APIM Publisher web interface. Instead, you can integrate WSO2 APIM with WSO2 G-Reg, to directly publish APIs to APIM Publisher using the services deployed in the WSO2 G-Reg. This guide explains how to configure the two products to expose services in the G-Reg as APIs in WSO2 APIM.

Prerequisites

Follow the steps below to set up the required prerequisites before starting the integration.

...

  1. Create the service, which you need to publish to WSO2 APIM in WSO2 G-Reg or edit it if it is an existing one. 

    Tip

    When creating the service or editing an existing service, add the same values that you provided for the apim.endpoint parameter (e.g. http://localhost:9763/), and apim.env parameter (e.g. "dev") in the lifecycle executor in Integrating with an External WSO2 API Manager, for Environments and URL in the Endpoints tab as shown in the example below.  

    define the endpoint

  2. Publish the  service you created or edited to WSO2 APIM Publisher. For instructions, see Managing Life Cycles of Assets.

...

  1. Log in to  the WSO2 APIM Publisher using the following URL and admin/admin credentials: https://10.100.5.72:9443/publisher. You view the service you published is successfully created as an API in the API Publisher as shown below. 
    API published in WSO2 APIMImage Removed service published to WSO2 APIMImage Added
  2. Click on the API.
  3. Click Edit API as shown below.

    editing the APIImage Removed editing the APIImage Added
  4. Click Next: Implement > in the following screen. 
    designing the APIImage Removed designing the APIImage Added
  5. Click Managed API as shown below. 
    Managed APIImage Removed select Managed API optionImage Added
  6. Enter the preferred Endpoint Type and Production Endpoint, and click Next : Manage > as shown below.

    implementing the APIImage Removed implementing the APIImage Added
  7. Enter preferred details, and click Save & Publish as shown below. 
    managing the APIImage Removed managing the APIImage Added
  8. Click Go to API Store in the message which pops up as shown below.
    Click Go to API Store button
  9. Select an Application, and click Subscribe as shown below.
    subscribe to API
  10. Click Go To My Subscriptions in the message which pops up as shown below.
    click Go to My Subscriptions
  11. Click Generate keys button in the Keys - Production section as shown below. 

    Tip

    You can skip this step if you already did it before.

    generate keys
    You view the generated keys as shown below.
    generated keys

  12. Click on the API which you subscribed in the Subscribed APIs section at the end of the screen as shown below.
    subscribed APIs
  13. Click on the API Console tab, and click on the POST box, to expand it as shown below.
    click POST in the API Console
  14. Click the Try it out! button. You view the result of invoking the API as shown in the below example.
    result of invoking the API