Dancer2-Plugin-RPC
view release on metacpan or search on metacpan
ex/MixedEndpoints.pm view on Meta::CPAN
package MixedEndpoints;
use warnings;
use strict;
=head1 DESCRIPTION
Package with calls for diffent endpoints.
=head2 call_for_system
=for xmlrpc system.call call_for_system /system
=for jsonrpc system_call call_for_system /system
=for restrpc call call_for_system /system
=cut
sub call_for_system { return {endpoint => '/system'} }
=head2 call_for_testing
=for xmlrpc testing.call call_for_testing /testing
=for jsonrpc testing_call call_for_testing /testing
=for restrpc call call_for_testing /testing
=cut
sub call_for_testing { return {endpoint => '/testing'} }
=head2 call_for_all_endpoints
=for xmlrpc any.call call_for_all_endpoints
=for jsonrpc any_call call_for_all_endpoints
=for restrpc any-call call_for_all_endpoints
=cut
sub call_for_all_endpoints { return {endpoint => '*'} }
1;
( run in 0.513 second using v1.01-cache-2.11-cpan-d7f47b0818f )