# simple-lambda-api-router AwsSamRouter example
This project is a ussage example of https://www.npmjs.com/package/simple-lambda-api-router.
It will use the AwsSamRouter with middy middlewares.
- SAM cli: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html
- Node
- Docker
- npm install
- npm run local
After running that, it will deploy the api gateway in your local. Make sure your template paths matchs with your controllers paths.
The next endpoints will return the event object:
- GET/health/
- POST/health/{type}/
- GET/user/
- GET/user/{id}/
- POST/user/
- DELETE/user/{id}/
- GET/user/clients/
- GET/user/clients/{id}/
- POST/user/clients/
- DELETE/user/clients/
Otherwise the lambda will return 404