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/PbxDeviceModelsItem.pm

29 lines
779 B

package NGCP::Panel::Controller::API::PbxDeviceModelsItem;
use Sipwise::Base;
use NGCP::Panel::Utils::Generic qw(:all);
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceModels/;
__PACKAGE__->set_config({
PUT => {
'ContentType' => ['multipart/form-data'],
'Uploads' => [qw/front_image mac_image front_thumbnail/],
},
allowed_roles => {
'Default' => [qw/admin reseller subscriberadmin subscriber/],
'PUT' => [qw/admin reseller/],
'PATCH' => [qw/admin reseller/],
'DELETE' => [qw/admin reseller/],
},
required_licenses => [qw/pbx device_provisioning/],
});
sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
1;
# vim: set tabstop=4 expandtab: