model() to REST_Controller.php