From 55b27b3f2a02be3174a121d839d6d9cd6b1bede0 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Thu, 19 Sep 2024 11:39:37 +0200 Subject: [PATCH] MT#61100 add pbx device/firmware search by type/tag Change-Id: Id41acdee57274d2791748f9e9d29f0d5f05b1965 --- lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm | 5 +++++ lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm index 01ac197940..a7746d83cf 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm @@ -54,6 +54,11 @@ sub query_params { second => sub { }, }, }, + { + param => 'tag', + description => 'Filter for firmwares with a specific tag', + query_type => 'string_eq', + }, ]; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm index 2b5ad3eb26..d986894bad 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm @@ -46,6 +46,11 @@ sub query_params { description => 'Filter for models by name', query_type => 'wildcard', }, + { + param => 'type', + description => 'Filter for model type', + query_type => 'string_eq', + }, ]; }