NAME
Mojolicious::Plugin::QooxdooJsonrpc - handle qooxdoo Jsonrpc requests
SYNOPSIS
# lib/your-application.pm
use base 'Mojolicious';
use RpcService;
sub startup {
my $self = shift;
$self->plugin('qooxdoo_json_rpc',{
services => {
Test => RpcService->new(),
},
});
}
DESCRIPTION
This plugin installs the MojoX::Dispatcher::Qooxdoo::Jsonrpc dispatcher into your application. If the application is running in development mode the plugin will serve both a compiled as well the source version of the application. Access the source version via the /source url.
See the documentation on MojoX::Dispatcher::Qooxdoo::Jsonrpc for details on how to write your service.
The plugin understands the following parameters.
- services (mandatory)
-
A pointer to a hash of service instances. See MojoX::Dispatcher::Qooxdoo::Jsonrpc for details on how to write a service.
- path (default: /jsonrpc)
-
If your application expects the JsonRPC service to appear under a different url.
- qx_app_root (default: the ../frontend)
-
When the mojo application is running in development mode, provide access to the source version of the qooxdoo application under the /source url. By default it is expected to reside in a directory called frontend sitting next to the mojo application directory.
AUTHOR
Tobias Oetiker, <tobi@oetiker.ch>
COPYRIGHT
Copyright OETIKER+PARTNER AG 2010
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.