NAME

Regru::API::NamespaceHandler - parent handler for all categories handlers.
Does API call and debug logging.

New namespace handler creation

First create new namespace handler package:

package Regru::API::Domain; # must be Regru::API::ucfirst($namespace_name)
use Modern::Perl;

use Moo;
extends 'Regru::API::NamespaceHandler';

my @methods = qw/nop get_prices get_suggest/; # API calls list

has '+methods' => (is => 'ro', default => sub { \@methods } );
has '+namespace' => (default => sub { 'domain' }); # API namespace

1;

And then add new namespace to @namespaces var in Regru::API

my @namespaces = qw/user domain/;