TT#125850 Add filtering by 'type' for /api/contracts

Change-Id: Ibc1f1fe4558472523d949cdea30815a08637e138
mr9.5.1
Flaviu Mates 5 years ago
parent 11e56c2dad
commit a840fc5224

@ -57,6 +57,19 @@ sub query_params {
second => sub {},
},
},
{
param => 'type',
description => 'Filter for contracts with a specific type',
query => {
first => sub {
my $q = shift;
{ 'product.class' => $q };
},
second => sub {
{ join => 'product' };
},
},
},
];
}

Loading…
Cancel
Save