This documentation is for WSO2 API Manager 1.9.0 View documentation for the latest release.
Page Comparison - Quick Start Guide (v.65 vs v.66) - API Manager 1.9.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: https://wso2.org/jira/browse/DOCUMENTATION-2587

...

Let's go through the use cases of the API Manager:

Table of Contents
maxLevel4
minLevel3

Invoking your first API

Warning

Unfortunately, the Weather API, which is used in API Manager 1.9.1, is not publicly available anymore. Therefore, as the key needed to execute the API invocation is not publicly available, the response mentioned in step 10 does not appear. Follow the tutorials below to learn how to create, subscribe, and invoke an API using a step-by-step approach.

  1. Create and Publish an API
  2. Subscribe to an API
  3. Invoke an API using the Integrated API Console

Follow the steps in this section to quickly deploy a sample API, publish it, subscribe to it, and invoking it.

  1. Open the API Publisher (https://<hostname>:9443/publisher) and log in with admin/admin  credentials.
  2. Click the Deploy Sample API button. It deploys a sample API called WeatherAPI into the API Manager.

  3. Click WeatherAPI to open it. 

    Let's publish this API.

  4. Go to the Lifecycle tab and note that the State is PUBLISHED. The API is already published to the API Store.

  5. Log in to the API Store (https://<hostname>:9443/store) with admin/admin credentials and note that WeatherAPI is visible under the APIs menu. Click it to open the API.

  6. The subscription options are on the right-hand side of the page. Select the default application and an available tier, and click Subscribe.

  7. When the subscription is successful, choose to go to the My Subscriptions page and click the Generate keys button to generate an access token to invoke the API. 

    You are now successfully subscribed to an API. Let's invoke the API using the integrated Swagger-based API Console.

  8. Click the APIs menu in the API Store again and then click the API to open it. When the API opens, click its API Console tab.

  9. Expand the GET method, give the parameter value as "London," and click Try it out
  10. Anchor
    step10
    step10
    Note the response for the API invocation. It returns the weather in London.

...