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

56 lines
1.0 KiB

package NGCP::Panel::Controller::API::PbxDeviceFirmwareBinaries;
use NGCP::Panel::Utils::Generic qw(:all);
use Sipwise::Base;
use boolean qw(true);
use Data::HAL qw();
use Data::HAL::Link qw();
use HTTP::Headers qw();
use HTTP::Status qw(:constants);
sub allowed_methods{
return [qw/OPTIONS/];
}
sub api_description {
return 'Defines the actual <a href="#pbxdevicefirmwares">PbxDeviceFirmwares</a> Binary.';
};
sub query_params {
return [
];
}
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceFirmwares/;
sub resource_name{
return 'pbxdevicefirmwarebinaries';
}
sub dispatch_path{
return '/api/pbxdevicefirmwarebinaries/';
}
sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwarebinaries';
}
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
required_licenses => [qw/pbx device_provisioning/],
});
sub auto :Private {
my ($self, $c) = @_;
$self->set_body($c);
#$self->log_request($c);
return 1;
}
1;
# vim: set tabstop=4 expandtab: