MT#10537 API: filter for call type in calllist

changes/55/555/6
Andreas Granig 11 years ago
parent f9cabf26ef
commit ad6dbc258c

@ -82,6 +82,32 @@ class_has 'query_params' => (
second => sub {},
},
},
{
param => 'type',
description => 'Filter for calls with a specific type. One of "call", "cfu", "cfb", "cft", "cfna".',
query => {
first => sub {
my $q = shift;
{
call_type => $q,
};
},
second => sub {},
},
},
{
param => 'type_ne',
description => 'Filter for calls not having a specific type. One of "call", "cfu", "cfb", "cft", "cfna".',
query => {
first => sub {
my $q = shift;
{
call_type => { '!=' => $q },
};
},
second => sub {},
},
},
{
param => 'direction',
description => 'Filter for calls with a specific direction. One of "in", "out".',

Loading…
Cancel
Save