Managing Your API Catalog in the Oracle API Platform Cloud Service Developer Portal


Options



Before You Begin

Purpose

In this tutorial, you learn how to view the published details of your API and its documentation. You also learn how to create and delete an application in the Oracle API Platform Cloud Service Developer Portal, how to register your applications to APIs, and how to see which APIs your application is registered to.

Time to Complete

30 minutes

Background

The Oracle API Platform Cloud Service Developer Portal provides discovery, learning, and registration for APIs. It's the web page where you subscribe to APIs and get the necessary information to invoke them. When you access the Oracle API Platform Cloud Service Developer Portal, the API Catalog page appears. All the APIs that are published to the portal are listed.

API Portal

When you select an API from the API Catalog, its API Portal details page appears. This page displays information about an API. You can see the state of an API (such as beta, released, deprecated), whether you can register to it, any applications that you have already registered to it, registration requests waiting for approval, and so on. Overview text that describes the API's basic features also appears on this page.

API Portal Documentation

The Documentation tab embeds the documentation reference you specified on the Publication tab when you created the API. Depending on how you configured this tab, the documentation appears inside a frame as a website, as text, or the documentation on Apiary.

Application Registration

Oracle API Platform Cloud Service uses application registrations to determine which users have permission to use an API. Each application is assigned a key. This key can be passed in a header or as a query parameter with the request as specified in a key validation policy. If a key validation policy is enabled, only requests with a valid, current application key corresponding to a registered API are passed. Any other requests to this API are rejected.

Scenario

The Application Developer user wants to create an application and register the Energy API to get the application key and start using the Energy API.

Context

This tutorial is the sixth in a series of nine that shows you how to work in Oracle API Platform Cloud Service.

What Do You Need?

Creating an Application and Registering an API

In this section, you create an application in the Oracle API Platform Cloud Service Developer Portal using your Application Developer credentials, and then you create a request to register the Energy API into your application.

  1. Log in to the API Platform Cloud Service Developer Portal using the Application Developer user role.

    http://hostname.domain:port/developers
    Oracle API Platform Cloud Service Developer Portal login page
    Description of this image
  2. In the API Catalog page, click the Energy API.

    APIs page - Energy API
    Description of this image
  3. On the Energy API Overview page, click Register.

    The Register button on the Energy API Overview page
    Description of this image
  4. On the Registration page, click Create New Application.

    Create New Application link on the Registration page
    Description of this image
  5. In the Create Application page, enter values in the following fields, and then click Save.

    • Application Name (required)
    • Description (optional)
    • Application Types (optional)
    • First Name (required)
    • Last Name (required)
    • Email (required)
    • Phone (optional)
    • Company (optional)
    Create Application page
    Description of this image
  6. Click Register API.

    Register Energy API
    Description of this image
  7. Go to the APIs page.

    In the Registered Applications section, you'll see that the EnergyApp status is Pending.

    APIs page - Energy API with EnergyApp in pending status
    Description of this image

Approving Request Registrations for the API

In this section, you approve the request registration created in the previous section through the Oracle API Platform Cloud Service Management Portal using the API Manager user role.

  1. Log in to API Platform Cloud Service Management Portal using your API Manager user role.

    http://hostname.domain:port/apiplatform
    API Platform Cloud Service Management Portal login page
    Description of this image
  2. In the APIs page, click the Energy API.

    APIs page - Energy API on the Management Portal
    Description of this image
  3. On the API Implementation page, click the Registration icon The Registration icon.

  4. On the Registrations page, click Requesting Registration.

    Registrations page
    Description of this image
  5. Select EnergyApp and click Approve.

    Request registration - Approve
    Description of this image
  6. In the confirmation dialog box at the top of the Registrations page, click Yes.

    Request registration - Confirmation dialog box
    Description of this image
  7. Click the Profile Menu, and then click Sign Out.

    api-manager-user - Sign Out
    Description of this image
  8. Log in to the API Platform Cloud Service Developer Portal using your Application Developer user role.

    http://hostname.domain:port/developers
    API Platform Cloud Service Developer Portal login page
    Description of this image

    In the API Catalog page, in the Registered Applications section of the Energy API you'll see that the status of the EnergyApp is Active, which means that the request was approved.

    API Catalog page - Energy API
    Description of this image

Unregistering an API and Deleting an Application

In this section, you verify that you can't delete the EnergyApp application if the application is registered. You unregister the Energy API and delete the application.

  1. Log in to the API Platform Cloud Service Developer Portal using your Application Developer user role.

    http://hostname.domain:port/developers
    API Platform Cloud Service Developer Portal login page
    Description of this image
  2. Click My Applications page, and then click EnergyApp.

    My applications - EnergyApp
    Description of this image
  3. Click the Trash Can icon.

    EnergyApp overview - Trash Can button
    Description of this image
  4. Click Yes.

    Warning delete confirmation
    Description of this image

    You see the following message:

    Error deleting registered application
    Description of this image
  5. Click Registered APIs, hover the cursor over the Energy link, and then click Unregister.

    Registered APIs - Unregister
    Description of this image
  6. Click Yes.

    Warning unregistering the API
    Description of this image

    You see the confirmation message:

    Confirmation message unregistered API
    Description of this image
  7. Click the Trash Can icon.

    Registered APIs page - Trash Can
    Description of this image
  8. Click Yes to continue.

    Warning delete application
    Description of this image

    You see the confirmation message:

    Confirmation message application deleted
    Description of this image

Want to Learn More?