From 8cb165b3fc99ae6ceb148192b025f2b11f5655d0 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Mon, 8 Jun 2015 14:28:16 +0200 Subject: [PATCH] MT#13243 api filter by webuser, -password Change-Id: I27bfe8bfb87cf55272af6dd21fc38608b1d8eb54 --- lib/NGCP/Panel/Controller/API/Subscribers.pm | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index 9e8f71fa4c..6651620656 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -56,6 +56,32 @@ class_has 'query_params' => ( second => sub {}, }, }, + { + param => 'webusername', + description => 'Search for specific webuser login credentials (exact match)', + query => { + first => sub { + my $q = shift; + return { 'provisioning_voip_subscriber.webusername' => $q }; + }, + second => sub { + return { join => 'provisioning_voip_subscriber' }; + }, + }, + }, + { + param => 'webpassword', + description => 'Search for specific webuser login password (exact match)', + query => { + first => sub { + my $q = shift; + return { 'provisioning_voip_subscriber.webpassword' => $q }; + }, + second => sub { + return { join => 'provisioning_voip_subscriber' }; + }, + }, + }, { param => 'domain', description => 'Filter for subscribers in specific domain',