I am trying to build web services using CakePHP. The default REST routes are not suitable for me as add, edit, update, delete are already taken up for other purposes.
I need to modify the default rates. From http://book.cakephp.org/2.0/en/development/rest.html,
<?php Router::resourceMap(array( array('action' => 'index', 'method' => 'GET', 'id' => false), array('action' => 'view', 'method' => 'GET', 'id' => true), array('action' => 'add', 'method' => 'POST', 'id' => false), array('action' => 'edit', 'method' => 'PUT', 'id' => true), array('action' => 'delete', 'method' => 'DELETE', 'id' => true), array('action' => 'update', 'method' => 'POST', 'id' => true) ));
What does 'id'=>false or true means? I cannot find sufficient documentation in the API documentation.
I have tried to search everywhere on sample code for CakePHP web services. But all I found are 2 links on related documentation
http://book.cakephp.org/2.0/en/development/rest.html
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html
To newbies like me, it is not very helpful although it may be enough for the experts. Can someone point me to more links?
Thank you very much.
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
No comments:
Post a Comment