php - Model from URL/API/JSON CakePHP -
i have new cakephp install , have series of web service endpoints in json, possible populate model json in cakephp? they won't connecting db data comes , submits web service. i have no code cannot find documentation on cakephp models site. rest datasource the storage mechanism model uses datasource. default cake assumes model used database can extends datasource class. there's an example in documentation of simple rest api datasource, , there many more datasources in the community datasources repository . it's not necessary build own rest datasource though, there existing solutions out there such this one make using model rest api rather trivial. examples readme: user::find('all') == http://api.example.com/users.json user::read(null, $id) == http://api.example.com/users/$id.json user::save() == post http://api.example.com/users.json user::save(array('id' => $id)) == put htt...