MT#11741 API: fix pbxdevicemodelimages props doc

Change-Id: Iae529c693f7f909e568083b6983b4a792b76b8f0
changes/65/1165/1
Andreas Granig 10 years ago
parent d40f9976ba
commit bc32830ad9

@ -20,7 +20,7 @@ class_has 'api_description' => (
is => 'ro',
isa => 'Str',
default =>
'Used to download the front and mac image of a <a href="#pbxdevicemodels">PbxDeviceModel</a>.',
'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.',
);
class_has 'query_params' => (
@ -39,6 +39,7 @@ class_has 'query_params' => (
]},
);
with 'NGCP::Panel::Role::API::PbxDeviceModelImages';
with 'NGCP::Panel::Role::API::PbxDeviceModels';
class_has('resource_name', is => 'ro', default => 'pbxdevicemodelimages');

@ -13,6 +13,7 @@ require Catalyst::ActionRole::ACL;
require Catalyst::ActionRole::HTTPMethods;
require Catalyst::ActionRole::RequireSSL;
with 'NGCP::Panel::Role::API::PbxDeviceModelImages';
with 'NGCP::Panel::Role::API::PbxDeviceModels';
class_has('resource_name', is => 'ro', default => 'pbxdevicemodelimages');

@ -0,0 +1,11 @@
package NGCP::Panel::Role::API::PbxDeviceModelImages;
use Moose::Role;
use Sipwise::Base;
sub get_form {
my ($self, $c) = @_;
return;
}
1;
# vim: set tabstop=4 expandtab:
Loading…
Cancel
Save