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

41 lines
1.1 KiB

package NGCP::Panel::Controller::API::PbxDeviceModelImages;
use Sipwise::Base;
use NGCP::Panel::Utils::Generic qw(:all);
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceModelImages NGCP::Panel::Role::API::PbxDeviceModels/;
__PACKAGE__->set_config({
required_licenses => [qw/pbx device_provisioning/],
});
sub config_allowed_roles {
return [qw/admin reseller subscriberadmin subscriber/];
}
sub allowed_methods{
return [qw/OPTIONS/];
}
sub api_description {
return 'Used to download the front and mac image of a <a href="#pbxdevicemodels">PbxDeviceModel</a>. Returns a binary attachment with the correct content type (e.g. image/jpeg) of the image.';
};
sub query_params {
return [
{
param => 'type',
description => 'Either "front" (default), "front_thumb" or "mac" to download one or the other.',
query => {
# handled directly in role
first => sub {},
second => sub {},
}
}
];
}
1;
# vim: set tabstop=4 expandtab: