Create a Service Tile for an API from IBM API Connect on Bluemix
In this post I am going to show you how easy it is for you to create a Bluemix tile for an API that you created using IBM API Connect. When you create APIs with IBM API Connect the credentials and urls for accessing your services are published in the developer portal that is tied to the catalog that you used to publish your APIs. Now what happens if you don’t want to embed or create special environment variables to store your credentials for your application, but instead want to use the VCAP_ENVIRONMENT variable to hold the credentials. Fortunately you can create a CloudFoundry user provided service that contains the credentials for accessing your service. This enables you to access the credentials just like you would any other Bluemix service. To do this all you need to do is to use the cf cups command. Here are the steps:
cf cups API-NAME -p ‘{“url”: “API-URL”, “client_id”: “ID”, “client_secret”: “SECRET”}’
As you can see it is pretty simple to publish your API’s credentials to any application on Bluemix.