serverless invoke local --function print --data '{"pathParameters":{"x":"3", "y": "5"}}'
- Run
npm install
to install all the necessary dependencies. - Run
npm run local
use serverless offline to test locally.
$ npm run deploy
# or
$ npm run deploy:dev
There is already an available version for you to test it.
curl https://66eniktko1.execute-api.us-east-1.amazonaws.com/dev/print/{x}/{y}