API Console
The API Console lets you test the REST operations of an API proxy after you deploy it to a gateway.
Follow these steps to test a REST operation from the Console view.
-
Sign in to the API Control Plane Console.
-
Select the project and API proxy you want to test.
-
In the left navigation menu, click Test. Console view is selected.
-
Under Gateway, select the gateway. The invoke URL of that gateway appears beside the gateway.
-
Select how the console sends the request:
- Through proxy relays the request through the API Control Plane. This is the default.
- Direct sends the request from your browser to the gateway. Your computer must be able to reach the gateway, and the gateway must allow requests from the console, for example with a CORS policy.
If the console can't reach a gateway through the proxy, such as a self-hosted gateway on a private network, select Direct.
-
In the endpoint list, select the operation you want to test. To find an operation, type in Search endpoints, or select a method such as GET.
-
Optional: On the Params and Headers tabs, set the values for the request.
-
Click Send, and check for a
200 OKstatus in the Response panel. Use the Body, Headers, and Request tabs to inspect the response and the request that the console sent.
To download the OpenAPI definition of the API, click Download OpenAPI.
Was this page helpful?