Calling an API¶
Use an API test tool to configure the API calling information.
Obtain the API request information.
For illustration purposes, an API and its documentation are obtained through offline channels. You can also obtain the authentication mode, request method, request path, and other information about the API.
Add the header parameter X-Apig-AppCode and set the parameter value to the generated AppCode.
Add the header parameter x-stage and set the parameter value to the running environment. Skip this step if the API has been published in the RELEASE environment.
Click Send to send a request.
If the API is called successfully, the message 200 OK is displayed.