Example::EndpointConfig - Takes away the details of Dancer::Plugin::RPC
use Dancer ':syntax'; use Bread::Board; use Example::EndpointConfig { plugins => ['RPC::JSONRPC', 'RPC::XMLRPC'] }; my $config = Example::EndpointConfig->new( publish => 'pod', bread_board => container( app => as { container apis => as { service 'Example::API::MetaCpan' => as ( class => 'Example::API::MetaCpan', dependencies => { # attributes needed for instantiation # or objects from the same container mc_client => '../clients/Client::MetaCpan', }, ), }; container clients => as { service 'Client::MetaCpan' => as ( class => 'Client::MetaCpan', dependencies => { base_uri => literal config->{base_uri}, ), }; }; ), ); $config->register_endpoint('RPC::JSONRPC' => '/metacpan'); $config->register_endpoint('RPC::XMLRPC' => '/metacpan');
This attribute can have the value of config or pod, it will be bassed to Dancer::Plugin::RPC
This attribute is passed directly to Dancer::Plugin::RPC
This is an instatiated Bread::Board::Container object, that defines the components of this service and their interaction.
The code-wrapper is passed to Dancer::Plugin::RPC. The default code-wrapper uses the Bread::Board::Container to spawn the code for the Remote-Procedure-Call.
This hashref is directly passed to Dancer::Plugin::RPC
Returns a config-hash for the Dancer::Plugin::RPC::* plugins.
Dancer::Plugin::RPC::*
(c) MMXIX - Abe Timmerman <abeltje@cpan.org>
To install Dancer::Plugin::RPC::RESTISH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::RPC::RESTISH
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::RPC::RESTISH
For more information on module installation, please visit the detailed CPAN module installation guide.