Make a test call to an API with Swagger UI
In this topic, you learn how to make a test call to an API and see the response.
| If you want to make test calls without sending data outside your internal network, use the API Client to perform the test calls. |
Procedure
-
In the Cockpit, go to Connectivity and select Swagger UI.
Result: The Swagger UI opens.
-
From the API list on the left, select the API you want to make a test call to.
Result: The Swagger UI pane shows the operations and models of the API.
-
Select an operation to see its parameters and responses.
You can still make test calls, even if you see No parameters. -
Select Try it out.
-
Enter a value for each parameter of that operation.
-
Select Execute.
Result: The Swagger UI pane shows the curl, request URL, response body, and response header for your test call.