Router::Resource
There are a bunch of path routers on CPAN, but they tend not to be very
RESTy. A basic idea of a RESTful API is that URIs point to resources and
the standard HTTP methods indicate the actions to be taken on those
resources. So to encourage you to think about it that way,
Router::Resource requires that you declare resources and then the HTTP
methods that are implemented for those resources.
The rules for matching paths are defined by Router::Simple's routing
rules, which offer quite a lot of flexibility.
INSTALLATION
This is a Perl module distribution. It should be installed with whichever
tool you use to manage your installation of Perl, e.g. any of
cpanm .
cpan .
cpanp -i .
Consult http://www.cpan.org/modules/INSTALL.html for further instruction.
Should you wish to install this module manually, the procedure is
perl Makefile.PL
make
make test
make install
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by David E. Wheeler.
This is free software; you can redistribute it and/or modify it under the
same terms as the Perl 5 programming language system itself.