Test APIs with cURL¶
Testing APIs is an essential step in the API development process. Choreo simplifies the testing task by allowing you to use cURL commands generated by Choreo.
You can follow the steps below to generate a cURL command and test your API method:
-
Sign in to the Choreo Console.
-
In the Component Listing pane, click on the component you want to test.
-
Click Test in the left navigation menu and then click cURL. This opens the cURL pane.
-
In the cURL pane, select the environment from the drop-down list.
-
Select an appropriate HTTP method from the Method list.
-
Click the Parameters tab and add the necessary parameters for the API method.
-
Click the Headers tab and add the required header values.
-
Click the Body tab and select the message body type to invoke the API method.
-
Copy the generated cURL command.
-
Use the copied cURL command via a cURL client to test your API method.