Skip to content

Instantly share code, notes, and snippets.

View satyam671's full-sized avatar

Satyam Sahu satyam671

View GitHub Profile

Testing REST APIs with cURL

cURL is a powerful command-line tool used for transferring data with URLs. It supports various protocols, including HTTP, making it an excellent choice for testing REST APIs. Below are some common use cases for API testing with cURL:

1. Basic GET Request

Retrieve data from an API endpoint.

curl -X GET https://api.example.com/resource \