Skip to content

Test APIs with cURL

Testing APIs is an essential step in the API development process. API Platform simplifies the testing task by allowing you to use cURL commands generated by API Platform.

You can follow the steps below to generate a cURL command and test your API method:

  1. Sign in to the API Platform Console.
  2. Select the project and API which 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.