Publish Lambda through API Gateway (REST), create resources/methods, and test GET/POST with curl or Postman.

dev)./hello, add GET and/or POST, choose Lambda integration, select your function.dev and note the invoke URL.curl "<invoke-url>/hello?name=alice"curl -X POST -H "Content-Type: application/json" -d '{"name":"alice"}' "<invoke-url>/hello"event.queryStringParameters for GET, parse event.body for POST; return JSON with proper status codes.