NodeJS rest API

Complete code for nodeJS rest api commited.