- Make sure you have
serverless
installed. - aws credentials configured
npm install
npm run build
Bug in plugin serverless-aws-documentation doesn't let to build project first time.
Workaround: Build without plugin. Enable plugin and build again.
curl -X POST \
https://<domain>/emails \
-H 'Content-Type: application/json' \
-d '{ "recipient":"noreplay@example.com", "body": "Hello world", subject: "Test" }'
curl -X POST \
https://<domain>/sms \
-H 'Content-Type: application/json' \
-d '{ "recipient":"+31..", "text": "Update your application"}'