Brian Duggan > Clustericious-0.9907 > Clustericious::RouteBuilder::CRUD

Download:
Clustericious-0.9907.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Clustericious-0.9937

NAME ^

Clustericious::RouteBuilder::CRUD -- build crud routes easily

SYNOPSIS ^

    use My::Object::Class;
    use Clustericious::RouteBuilder;
    use Clustericious::RouteBuilder::CRUD
            "create" => { -as => "do_create" },
            "read"   => { -as => "do_read"   },
            "delete" => { -as => "do_delete" },
            "update" => { -as => "do_update" },
            "list"   => { -as => "do_list"   },
            defaults => { finder => "My::Finder::Class" },
        ;

    ...

    post => "/:table" => \&do_create;

DESCRIPTION ^

This package provides some handy subroutines for building CRUD routes in your clustericious application.

The class referenced by "finder" must have methods named find_class and find_object.

The objects returned by find_object must have a method named as_hash.

TODO ^

more documentation

syntax highlighting: