Practise of JSON and REST in Cakephp