All docs This doc
Skip to end of metadata
Go to start of metadata

The applications deployed in WSO2 Integration Cloud can consume the APIs created in WSO2 API CloudWSO2 API Cloud is a platform that enables you to expose business capabilities as APIs and manage their lifecycles, from creation to publication and retirement.           

In this tutorial, you create a sample Java Web application that consumes the buzzwordapi API that you created in the previous tutorial.

buzzwordapi allows you to insert any buzzword of your choice to a database that you created in the Integration Cloud. If the same buzzword is added several times, its popularity increases. You can invoke the API to insert buzzwords and retrieve buzzwords in different ways such as all at once, the 10 most popular buzzwords, or the ones that are similar to a word that you provide.

Let's get started!

  1. Sign in to WSO2 Cloud and go to the Integration Cloud tab. Then, click Java Web Applications.
  2. Select the Local File System option and click Continue.

  3. Enter the following details in the form that opens, scroll down, and click Create.

    Application Nameconsumer
    Upload a WAR fileDownload 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:

    A PI_MANAGER_URLThis is the URL of the API Cloud's Gateway:
    A PI_ENDPOINT_URL<API_PRODUCTION_URL>/all. In this example, it is /all .

    To get the <API_PRODUCTION_URL>, go to the API's Overview tab in the API Store.
    A PI_CONSUMER_KEYGo to the APPLICATIONS page in the API Store and copy the consumer key from the Production Keys tab.
    A PI_CONSUMER_SECRETGo to the APPLICATIONS page in the API Store and copy the consumer key from the Production Keys tab.

  4. Once the application is deployed, click its URL to launch it.

  5. 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.

What's next?

See Implement Continuous Integration and Deployment with Jenkins or see Integration Solutions.

  • No labels