package MyApp::Controller::User; use Moose; BEGIN { extends 'CatalystX::Controller::ExtJS::REST' } __PACKAGE__->config( default_resultset => 'User', forms => { default => [ { name => 'id' }, { name => 'email', constraint => 'Required' }, { name => 'password' } ], } ); 1;
This module adds feature-rich REST controllers to your application.
CatalystX::Controller::ExtJS::REST gives examples and describes all configuration options.
Have a look at the tutorial which shows integration of this controller with CatalystX::ExtJS::Direct.
Parent namespace. Includes examples and the code for the tutorial.
Enable Ext.Direct in Catalyst controllers.
To install CatalystX::ExtJS::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::ExtJS::REST
CPAN shell
perl -MCPAN -e shell install CatalystX::ExtJS::REST
For more information on module installation, please visit the detailed CPAN module installation guide.