Testing APIs


You can test published APIs in the APIM before making them available to the public or use them in the production environment.


This section shows how to test the APIs.

Before You Start

  • Ensure that you have an EnOS account and the permissions to create APIs in the EnOS Management Console. For more information, see Policies, Roles, and Permissions.
  • Ensure that you have completed the Creating APIs task and released the API.

Procedure

Scenario 1: Private APIs

  1. Log in to the EnOS Management Console and select API Management > My APIs.
  2. Click the API group where the API to be tested is located.
  3. Find the API that has an Released status but Private visibility, and click the Test icon to test it.
  4. You can change the values of the parameters in the API Test page.
  5. Click Test to view the Request URL and Response on the right.

Scenario 2: Public APIss

  1. Log in to the EnOS Management Console, select API Management > Public APIs, and click on the API group where the API needs to be tested.

  2. Select the API in the group and click the API Test button to test the API.

    Note

    When the API has been authorized or public, you need to enter a valid Access Key and Secret Key to successfully execute the API call.

Results

Users can debug the API according to the test response, edit the API, and then make it available to the public.