setup 🦄
install dependencies 🍔
run serverless in offline mode 🥂
dashboard: https://app.serverless.com/jitunayak/apps/poc/cognito-api-gateway/dev/ap-south-1
endpoints:
POST - http://localhost:3000/login
POST - http://localhost:3000/secure
functions:
open: cognito-api-gateway-dev-open
curl --location --request POST 'http://localhost:3000/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": {username},
"password": {password},
}'