nodejs-typescript-api-server
npm install
brew install jq
npm run start
curl http://localhost:3000/
curl -X POST http://localhost:3000/books \
-H "Content-Type: application/json" \
-d '{"title": "The Hobbit", "author": "J.R.R. Tolkien"}'
curl http://localhost:3000/books | jq
curl http://localhost:3000/books/1 | jq
curl -X PUT http://localhost:3000/books/1 \
-H "Content-Type: application/json" \
-d '{"title": "The Hobbit", "author": "J.R.R. Tolkien Updated"}'
curl -X DELETE http://localhost:3000/books/1