The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Example - An example RPC-application for Dancer2::Plugin::RPC

SYNOPSIS

    $ cd example
    $ carton install
    $ APP_PORT=3030 carton exec -- bin/example.pl start
    $ carton exec -- bin/do-rpc -u http://localhost:3030/system -c status -t xmlrpc
    $ carton exec -- bin/example.pl stop

DESCRIPTION

This example application shows a way to use the Dancer2::Plugin::RPC system.

Use of Bread::Board for dynamcally building parts of applications

Split Controler from Model

Different ways of publishing APIs with the RPC-plugins

POD

As the Example::API::System module shows, one can use the special POD-directives =for <plugin-keyword> <rpc-name> <sub-name> [<path>] to publish access to the API.

The code and the POD must be in the .pm-file.

CONFIG

As the Example::API::MetaCpan module shows, one can also use the config.yml file to set up the access to the API.

COPYRIGHT

© MMXXII - Abe Timmerman <abeltje@cpan.org>