- Install dependencies -
yarn
- Run server -
yarn start
- Run server in developer mode -
yarn start:dev
{
"request": {
"verb": "PUT",
"url": "https://guesty-user-service.herokuapp.com/user/{userId}"
},
"payloads": [
{
"userId": 14,
"age": 14
},
{
"userId": 29,
"age": 30
},
{
"userId": 103,
"age": 55
}
]
}
curl --header "Content-Type: application/json" \
--request PUT \
--data '{ "request": { "verb": "PUT", "url": "https://guesty-user-service.herokuapp.com/user/{userId}" }, "payloads": [ { "userId": 14, "age": 14 } ] }' \
http://localhost:3000/batch
- Add Rate limit as a middleware
- Add unit tests