[Catalyst] In search of RESTful CRUD holy grail
Peter Karman
peter at peknet.com
Wed Mar 4 14:53:28 GMT 2009
Zbigniew Lukasiak wrote on 03/04/2009 06:25 AM:
> This leads to new variation:
>
> # POST /foo -> create new record
> # GET /foo -> list all records
> # PUT /foo/by_id/<pk> -> update record
> # DELETE /foo/by_id/<pk> -> delete record
> # GET /foo/by_id/<pk> -> view record
> # GET /foo/by_id/<pk>/edit_form -> edit record form
> # GET /foo/create_form -> create record form
>
> Of course 'by_id' could be 'instance' or whatever (perhaps the library
> should let the user to choose that infix part).
I wrote about this during 2008 Advent:
http://www.catalystframework.org/calendar/2008/12
--
Peter Karman . peter at peknet.com . http://peknet.com/
More information about the Catalyst
mailing list