Integrating the REST API with the node