Updated on 2022-08-29 GMT+08:00

Debugging an API

  1. On the APIs page, locate the API created in Creating an API, and choose More > Debug.
  2. On the left side, set the API request parameters listed in Table 1. On the right side, view the API request and response information after you click Send Request.

    Table 1 Parameters for debugging an API

    Parameter

    Description

    Protocol

    This parameter can be modified only if you set Protocol to HTTP&HTTPS for the API.

    Method

    This parameter can be modified only if you set Method to ANY for the API.

    Path

    Request path of the API.

    Query Strings

    Query string parameters and values.

    Headers

    HTTP headers and values.

    Body

    This parameter can be modified only if you set Method to PATCH, POST, or PUT for the API.

  3. Click Send Request.

    If the API is called successfully, the status code 200 is displayed.