Installing the AWS SAM CLI on macOS
make build
sam local start-api
curl http://localhost:3000
curl -X GET -H 'content-type: application/json' http://localhost:3000/query?name=foo
curl -X GET -H 'content-type: application/json' http://localhost:3000/path/foo
curl -X POST -H "Content-Type:application/json" --data '{ "message": "world" }' http://localhost:3000
curl -X PUT -H "Content-Type:application/json" --data '{ "message": "world" }' http://localhost:3000
curl -X DELETE http://127.0.0.1:3000