Building a Restful API with Nodejs