X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FREST.pm;h=23655e25a12dcb72ae9ba32b154293f186a0111b;hp=a1c47e1effb2a6b3e51f08a00a8fb1ecc90faabb;hb=533075c7cc1bfd0ed993d273314ad46f0d85401b;hpb=8cf0b66a04e74b7bd5db0c8041575825ec8f73d2 diff --git a/lib/Catalyst/Controller/DBIC/API/REST.pm b/lib/Catalyst/Controller/DBIC/API/REST.pm index a1c47e1..23655e2 100644 --- a/lib/Catalyst/Controller/DBIC/API/REST.pm +++ b/lib/Catalyst/Controller/DBIC/API/REST.pm @@ -18,8 +18,8 @@ Provides a REST style API interface to the functionality described in L, the chain root of the controller, and the request type will determine the L method to forward. @@ -36,21 +36,21 @@ As described in L, this action is the cha ... ); -=method_protected base +=method_protected no_id -Chained: L +Chained: L PathPart: none CaptureArgs: 0 Forwards to list level methods described in L as follows: -DELETE: forwards to L then L -POST/PUT: forwards to L then L +DELETE: L +POST/PUT: L GET: forwards to L =cut -sub no_id : Chained('object_no_id') PathPart('') ActionClass('REST') :CaptureArgs(0) {} +sub no_id : Chained('objects_no_id') PathPart('') ActionClass('REST') {} sub no_id_PUT { @@ -76,7 +76,21 @@ sub no_id_GET $c->forward('list'); } -sub with_id :Chained('object_with_id') :PathPart('') :ActionClass('REST') :CaptureArgs(0) {} +=method_protected with_id + +Chained: L +PathPart: none +CaptureArgs: 0 + +Forwards to list level methods described in L as follows: + +DELETE: L +POST/PUT: L +GET: forwards to L + +=cut + +sub with_id :Chained('object_with_id') :PathPart('') :ActionClass('REST') {} sub with_id_PUT {