RESTful architecture on node