Skip to content

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:

  1. Sign in to the Choreo Console.

  2. In the Component Listing pane, click on the component you want to test.

  3. Click Test in the left navigation menu and then click cURL. This opens the cURL pane.

  4. In the cURL pane, select the environment from the drop-down list.

  5. Select an appropriate HTTP method from the Method list.

  6. Click the Parameters tab and add the necessary parameters for the API method.

  7. Click the Headers tab and add the required header values.

  8. Click the Body tab and select the message body type to invoke the API method.

  9. Copy the generated cURL command.

  10. Use the copied cURL command via a cURL client to test your API method.