Update REST_Controller.php

fix Issue #247