A simple NodeJS REST API that can do CRUD operations with Express and PostgreSQL
getUser:
curl localhost:1323/users/{id}
getAllUsers:
curl localhost:1323/users
createUser:
curl -X POST -H 'Content-Type:application/json' -d '{"first_name":"foo","last_name":"bar","age":"24","email":"foobar@foobar.com"}' localhost:1323/users
updateUser:
curl -X PUT -H 'Content-Type:application/json' -d '{"first_name":"foo","last_name":"bar","age":"24","email":"foobar@foobar.com"}' localhost:1323/users/{id}
deleteUser:
curl -X DELETE localhost:1323/users/{id}