Musachy Barroso on 08/01/09 16:23, wrote:
ok, here we go. Looking at the rest showcase application, when you hit this url:/orders/10 the REST plugin (to simplify) says "I have to invoke the 'show' method in the 'orders' action, and set its 'id' parameter to 10". How does the REST plugin know what to invoke? based on some simple convention rules which are defined in the documentation: * GET: /movies => method="index" * GET: /movies/Thrillers => method="show", id="Thrillers" * GET: /movies/Thrillers;edit => method="edit", id="Thrillers" * GET: /movies/Thrillers/edit => method="edit", id="Thrillers" * GET: /movies/new => method="editNew" * POST: /movies => method="create" * PUT: /movies/Thrillers => method="update", id="Thrillers" * DELETE: /movies/Thrillers => method="destroy", id="Thrillers" so, the REST plugin based on some conventions, saves you the time of having to define the mappings for the actions and results, among other things.
Just wondering, in the REST paradigm, are Query String parameters banished? regards Adam --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

