Testing APIs


For Online APIs, users can test them 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 published the API.

Procedure

  1. Log in to the EnOS Management Console and select API Management > My API.

  2. Click the API group where the API to be tested is located.

  3. Find the API that is Online but not Public, and click Test 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.

Results

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