0
  • I have designed an API using API Designer and I deployed it in API Manager.

  • Then, I have imported the API from API Designer in my application/project from Anypoint Studio.

  • I have added an autodiscovery configuration. I set the flow which has the HTTP Listener with the API Kit Router and the ID from API Manager.

  • I have deployed the application in Cloudhub.

  • When I go to API Manager the status is Unregistered.

This is the API Configuration that I have:

enter image description here

Using the URL from Cloudhub as the Implementation URI.

Am I doing all the steps correctly? Why doesn't the API detect the implementation?

gtx911
  • 1,189
  • 4
  • 25
  • 46
  • Think that's fine. It can take quite a few minutes to turn to registered after the app starts. In the application log, do you see a message saying something like 'API instance... unblocked '? – Ryan Carter Jun 07 '19 at 22:52

1 Answers1

2

Make sure you configure the Autodiscovery Element with the correct values as they appear in the API Manager enter image description here

 <api-platform-gw:api apiName="<API Name>" version="<API Version>" flowRef="api-main" create="false" apikitRef="api-config" doc:name="API Autodiscovery" />

Also the API belong to an Environment so make sure In the Runtime Manager you are setting the environment client id and secret when deploy the application in Cloudhub:

enter image description here

The get the client id an secret for the specific Environment navigate to Anypoint Platform -> Access Management -> Environment.

Hope this helps...

Mario Cairone
  • 1,071
  • 7
  • 11