tencent cloud

フィードバック

Debugging General APIs

最終更新日:2023-12-22 09:48:51

    Overview

    The API debugging page allows you to verify the correctness of an API immediately after completing its configuration by initiating a simulated API call and viewing the specific request response. If the API fails to work as expected, you can modify the configuration according to the response to make it meet your design expectations.

    Prerequisites

    Directions

    1. Log in to the API Gateway console and click Service in the left sidebar to enter the service list page.
    2. Click a service name to enter the service details page, and click Manage API at the top to manage the API.
    3. Select the API to be debugged in the general API list. Click Debug in the operation column to go to the debugging page.
    On this page, you can see the frontend configuration information of the API to be debugged, including the path, request method and Content-Type. For the request parameters (not displayed if you do not configure them):
    If you configure a parameter to have a default value, the default value will be populated in the input box by default;
    If you configure a parameter to be required, a check will be performed to verify whether any value has been entered for it before testing;
    If your request method is POST, PUT, or DELETE, you will be required to enter a value for the Body parameter.
    Note:
    If a parameter is optional and the user does not enter any value for the parameter, API Gateway will send a null to the backend by default.
    4. Click Send request, you will see the response body and response headers.
    Response: the response code and data actually returned to the frontend after the API call.
    
    
    
    お問い合わせ

    カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

    テクニカルサポート

    さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

    電話サポート(24 時間365日対応)