node-api2, RESTful api