This project has been generated using the aws-nodejs-typescript
template from the Serverless framework.
For detailed instructions, please refer to the documentation.
This template contains a single lambda function triggered by an HTTP request made on the provisioned API Gateway REST API /ping
or /users
routes with GET
method.
In order to test the handler function locally, run the following commands:
npx sls invoke local -f handler --path get-ping-mock.json
- test the/ping
routenpx sls invoke local -f handler --path get-users-mock.json
- test the/users
route
Check the sls invoke local command documentation for more information.