[Catalyst] REST - like uri design for CRUD
Peter Karman
peter at peknet.com
Sun Jan 20 20:58:38 GMT 2008
Zbigniew Lukasiak wrote on 1/20/08 1:56 PM:
> I know this has been discussed already - but I can't find it in the archives.
>
> What I conjured is:
>
> /class/search
> /class/id/1111/view
> /class/id/1111/update
> /class/create
>
> Update and create use really the same logic and templates - so I just
> forward to a create_or_update action from them.
>
> What are your opinions?
>
that's essentially the CatalystX::CRUD::Controller API:
http://search.cpan.org/~karman/CatalystX-CRUD-0.22/lib/CatalystX/CRUD/Controller.pm
That API is intentionally RESTish, though there's no checking of HTTP method at all.
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the Catalyst
mailing list