Reorienting towards RESTful API