Search code examples
wso2wso2-cloudwso2-governance-registry

G-Reg and API manager Integration WSO2


Is it possible to use endpoints configured in G-Reg while creating an API in API manager?


Solution

  • Currently, there is no straightforward way to do this. But it's already suggested as an improvement.

    But let me suggest a workaround. Here are steps in brief.

    1. Store your endpoint in the registry.
    2. Write a custom sequence to read endpoint from the registry, and set To header accordingly.
      • These posts might help on how to read the registry.
      • See this for how to set To header.
    3. Pick default endpoint as the endpoint type of your API.
    4. Attach the custom sequence to your API.

    That's it.