Full API Testing with curl — Postman in Your Terminal
Test every HTTP method, authenticate, debug headers — all from CMD:
Complete CRUD API Test:
```cmd
REM Create user (POST)
curl -X POST http://localhost:3000/api/users ^
-H "Content-Type: application/json" ^
-d "{"name":"Manoj","email":"m@test.com"}"
REM Get all users (GET)
curl http://localhost:3000/api/users
REM Update user (PUT)
curl -X PUT http://localhost:3000/api/users/1 ^
-H "Content-Type: application/json" ^
-H "Authorization: Bearer YOUR_JWT" ^
-d "{"name":"Er. Manoj Kumar"}"
REM Delete user (DELETE)
curl -X DELETE http://localhost:3000/api/users/1 ^
-H "Authorization: Bearer YOUR_JWT"
`
Health Check Script:
```cmd
@echo off
curl -s -o nul -w "%%{http_code}" http://localhost:3000/health > tmp.txt
set /p STATUS=<tmp.txt
if not "%STATUS%"=="200" echo API is DOWN! Status: %STATUS%
else echo API is UP ✅ Status: %STATUS%
`
Master curl = debug any API from anywhere, any device! 💪
