Learning to make a RESTful api using Node.js