TT#41630 Add station_name filter to PbxDevices

Change-Id: I67fd054d791a59f2fca566e81a86c9bcf596f4b8
changes/42/22742/2
Irina Peshinskaya 8 years ago
parent 1a7aca8c11
commit 1f75abe1a6

@ -35,25 +35,19 @@ sub query_params {
{
param => 'profile_id',
description => 'Search for PBX devices with a specific autoprovisioning device profile',
query => {
first => sub {
my $q = shift;
return { profile_id => $q };
},
second => sub {},
},
query_type => 'string_eq',
},
{
param => 'identifier',
description => 'Search for PBX devices matching an identifier/MAC pattern (wildcards possible)',
query => {
first => sub {
my $q = shift;
return { identifier => { like => $q } };
},
second => sub {},
},
query_type => 'string_like',
},
{
param => 'station_name',
description => 'Search for PBX devices matching a station_name pattern (wildcards possible)',
query_type => 'string_like',
}
];
}

Loading…
Cancel
Save