You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm

32 lines
600 B

package NGCP::Panel::Controller::API::DomainPreferencesItem;
use NGCP::Panel::Utils::Generic qw(:all);
use Sipwise::Base;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preferences/;
__PACKAGE__->set_config({
PATCH => { ops => [qw/add replace remove copy/] },
allowed_roles => [qw/admin reseller/],
});
sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
sub item_name{
return 'domainpreference';
}
sub resource_name{
return 'domainpreferences';
}
sub container_resource_type{
return 'domains';
}
1;
# vim: set tabstop=4 expandtab: