cakephp3でjsonを返すAPIを作る
config/routes.phpに
$routes->extensions([‘json’]); を追加。
jsonを返すアプリケーション名を指定する $routes->resources(‘Users’); $routes->resources(‘Parts’);
[参考] http://book.cakephp.org/3.0/en/development/routing.html#resource-routes
Comments are currently closed.
Facebook
Comments are currently closed.