From bc32830ad9c9affd522d607e9f77dcf5ceba4b58 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 25 Feb 2015 11:00:41 +0100 Subject: [PATCH] MT#11741 API: fix pbxdevicemodelimages props doc Change-Id: Iae529c693f7f909e568083b6983b4a792b76b8f0 --- lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm | 3 ++- .../Panel/Controller/API/PbxDeviceModelImagesItem.pm | 1 + lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm index 4dbfc14869..065b6f625f 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm @@ -20,7 +20,7 @@ class_has 'api_description' => ( is => 'ro', isa => 'Str', default => - 'Used to download the front and mac image of a PbxDeviceModel.', + 'Used to download the front and mac image of a PbxDeviceModel. 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'); diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm index 4ab0155848..4e01ac4702 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm @@ -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'); diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm b/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm new file mode 100644 index 0000000000..c5ad0ed969 --- /dev/null +++ b/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm @@ -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: