After creating an API, debug it on the APIG console by setting HTTP headers and body parameters to verify whether the API is running normally.
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.
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. |
Suffix |
You can define a path only if you have set Matching to Prefix match for the API. |
Path |
Request path of the API. |
Path Parameters |
This parameter can be modified only if you have defined path parameters (such as {test}) for 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. |
The fields displayed on the debugging page vary according to the request type.
The box on the lower right displays the response of the API request.
To modify the API configurations, click Edit in the upper right corner, and modify the parameters on the Edit API page.
After the API is successfully debugged, publish the API in a specific environment so that the API can be called by users. To ensure security of the API, create request throttling policies (see Creating a Request Throttling Policy), access control policies (Creating an Access Control Policy), and signature keys (Creating and Using a Signature Key) for the API.