Nested REST resource requests
Hi,
I've been reading the REST sections in the documentation. How can I
get Cake to recognize and handle nested resource requests.
Say I have an Cook entity/object. Each Cook object is associated one-
to-many with Recipe objects. How can I write an Cake MVC that could
handle the looking up of a given recipe for a given Cook. So the URL
would look like:
<host>/cooks/5/recipes/42
which would look up recipe number 42 for cook 5.
I recognize this could be a decent sized reply so hopefully this has
been solved and is covered in some existing documentation/post.
Thanks,
Adam
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home