-
-
08 Dec 2020 07:52:54 UTC
- Distribution: Dancer-Plugin-RPC
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (25 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (38.7KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
++ed by:2 non-PAUSE users- Dependencies
- Dancer
- JSON
- Params::Validate
- Params::ValidationCompiler
- RPC::XML
- Time::HiRes
- Types::Standard
- YAML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Dancer::RPCPlugin::DispatchFromPod - Build dispatch-table from POD
SYNOPSIS
use Dancer::Plugin; use Dancer::RPCPlugin::DispatchFromPod; sub dispatch_call { return dispatch_table_from_pod(%parameters); }
DESCRIPTION
Interface to build a (partial) dispatch table from the special pod-directives in the packages specified and for the optional endpoint specified.
POD Specifications
One can specify a sub/method to be used for the RPCPlugin by using the POD directive
=for
followed by the rpc-protocol supported by this plugin-set. One of jsonrpc, restrpc and xmlrpc.=for <protocol> <rpc-name> <real-code-name>[ <endpoint>]
- <protocol> must be one of <jsonrpc|restrpc|xmlrpc>
- <rpc-name> is the name used by the rpc-interface to execute this call, different protocols may use diffent 'rpc-name's to reflect the nature of the protocol.
- <real-code-name> is the name of the sub/method
- <endpoint> this optional argument is needed for files/packages that have code for different endpoints.
The pod-directive must be in the same file the code it refers to is.
Make sure the partial dispatch table for a single endpoint is build in a single pass.
EXPORTS
dispatch_table_from_pod(%arguments)
Parameters
Named:
- plugin => <jsonrpc|restrpc|xmlrpc>
- packages => [ $package_name, ... ]
- endpoint => '/endpoint_for_dispatch_tabledispatch_table'
Responses
A (partial) dispatch-table.
COPYRIGHT
(c) MMXV - Abe Timmerman <abeltje@cpan.org>
Module Install Instructions
To install Dancer::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm Dancer::Plugin::RPC
perl -MCPAN -e shell install Dancer::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.