The applications deployed in WSO2 Integration Cloud can consume the APIs created in WSO2 API Cloud. WSO2 API Cloud is a platform that enables you to expose business capabilities as APIs and manage their lifecycles, from creation to publication and retirement.
Let's get started!
- Sign in to WSO2 Cloud and go to the Integration Cloud tab. Then, click Java Web Applications.
Select the Local File System option and click Continue.
Enter the following details in the form that opens, scroll down, and click Create.
Field Value Application Name consumer Upload a WAR file Download this sample WAR file and upload it to the Integration Cloud. Environment Variables
Add the following environment variables. They allow you to connect to the API that you created in the API Store in the previous tutorial:
Key Value A PI_MANAGER_URL This is the URL of the API Cloud's Gateway:
<API_PRODUCTION_URL>/all. In this example, it is
To get the
<API_PRODUCTION_URL>, go to the API's Overview tab in the API Store.
A PI_CONSUMER_KEY Go to the APPLICATIONS page in the API Store and copy the consumer key from the Production Keys tab. A PI_CONSUMER_SECRET Go to the APPLICATIONS page in the API Store and copy the consumer key from the Production Keys tab.
Once the application is deployed, click its URL to launch it.
- Note the buzzwords that appear in the buzzword cloud.
You have now created an application in WSO2 Integration Cloud that consumes your business APIs that are in WSO2 API Cloud.