Consume APIs in API Manager

Overview

API consumer users consume managed APIs exposed by the API Gateway, using them to build and test client applications. API consumers can be client application developers from named organizations or the community organization. They can also include operator users who are responsible for monitoring production applications that invoke managed APIs. API Manager provides an intuitive user interface to enable API consumers to consume the managed APIs exposed by the API Gateway.

Note   This topic assumes that API Manager has already been enabled and configured for your environment. For more details, see Configure API Manager.

Consume REST APIs

Each API consumer user has an account in API Manager. They can use API Manager to perform tasks such as the following:

API consumers are concerned only with applications, credentials, and APIs. They do not require detailed knowledge of the API Gateway

Register an API Manager user account

The API consumer can use to following URL to register an API Manager user account:

This displays the following registration dialog:

Web-based registration

When the user account has been registered, an email is sent to the user to enable them to activate their account. They can then log into API Manager using their registered user name and password.

For details on optional registration codes for organizations, see Administer APIs in API Manager.

API consumer view

When an API consumer user logs in to API Manager, this displays a specific view for the API consumer. This includes the following tabs:

Browse and retrieve APIs

You can use the API Catalog view to browse and retrieve APIs in API Manager. For example:

View API tags

Retrieve APIs using tags

When tags have been added in API Manager, you can use them to browse and retrieve APIs. For example, you can click the Tags button in the API Manager toolbar to select tags to filter:

Retrieve API tags

In this example, selecting the Wordnik tag would display the Petstore API only. You can also filter tags manually by entering the tag: prefix followed by the tag value in the filter box (for example, tag:Wordnik). You can filter multiple tags by entering a comma-separated list without any spaces between values. For example, in this case, entering a filter of tag:REST,Eng would displays the Sentinel and Petstore APIs only, and not the Test API, which is tagged as QA.

Manage client applications

You can use the Applications tab to manage client applications (for example, create, update, or remove client applications that invoke specific APIs). When an application is created, API administrators can also set authentication, quota, and sharing settings on the appropriate tab.

The following example shows editing a client application:

Creat client application

Note   The API administrator must first specify the APIs that an organization is allowed to access before any of its client applications can have access to them. In API Manager, you can only add APIs to an application when they have been added to the organization. For more details, see Administer APIs in API Manager.

Create an application

To create an application, perform the following steps:

  1. Click New application in the toolbar, and configure the following general fields:
    • Image: Click to add a graphical image for the application (for example, .png, .gif, or .jpeg file).
    • Application name: Enter the name of the application. This field is required.
    • Organization: Enter the name of the organization that the application belongs to. This field is required. The choice of organization determines which APIs are available to the application. For more details, see Administer APIs in API Manager.
    • Enabled: Select whether the application is enabled. Applications are enabled by default.
  1. Configure the following additional attributes:
    • Email: Enter an email address for the application.
    • Phone: Enter a phone number for the application.
    • Description: Enter a short description of the application.
  1. Click Add API to select the APIs and methods used by the application. You can add multiple APIs for an application.
  2. Click Create in the toolbar.

Edit an application

When applications have been created, you can click an application name in the Managing applications screen to edit its existing settings on the Application tab. API administrators can also configure additional settings on the following tabs:

Authentication

The following settings are available on the Authentication tab:

For more details on OAuth, see the API Gateway OAuth User Guide.

Quota

The Quota tab enables API administrators to override the application-default quota and specify application-specific quota rules. For more details, see Administer APIs in API Manager.

Sharing

The Sharing tab enables API administrators to manage access to the application for specified users. Click Add User, select an existing user name from the list, and select whether the user can View or Manage the application. The default is View.

You can add multiple existing users. For details on creating users, see Administer APIs in API Manager. To remove user access to the application, select the user name, and click Remove.