MT#7487 API: filter subscribers using profile_id

mr3.3.1
Andreas Granig 12 years ago
parent e136be4c68
commit 151b77692f

@ -32,6 +32,19 @@ class_has 'query_params' => (
is => 'ro',
isa => 'ArrayRef',
default => sub {[
{
param => 'profile_id',
description => 'Search for subscribers having a specific subscriber profile',
query => {
first => sub {
my $q = shift;
return { 'provisioning_voip_subscriber.profile_id' => $q };
},
second => sub {
return { join => 'provisioning_voip_subscriber' };
},
},
},
{
param => 'username',
description => 'Search for specific SIP username',

Loading…
Cancel
Save