finally solved the integration of the Cake-Php Rest Plugin