G-Reg and API manager Integration WSO2

60 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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.