TT#101300 add subscriber location mappings filter by external id

Change-Id: I2363d615d1bc75fa33a2a512f2d8e3fc6d902aed
mr9.2
Kirill Solomko 6 years ago
parent 822d3fed46
commit 1885af6b7d

@ -22,17 +22,12 @@ sub query_params {
{
param => 'subscriber_id',
description => 'Filter for location mappings of a specific subscriber',
query => {
first => sub {
my $q = shift;
return { 'voip_subscriber.id' => $q };
},
second => sub {
return {
join => { subscriber => 'voip_subscriber' }
};
},
},
query_type => 'string_eq',
},
{
param => 'external_id',
description => 'Filter for location mappings matching the provided external_id',
query_type => 'string_eq',
},
];
}

Loading…
Cancel
Save