From 18c4692fccfe5150008a829ec849ba35ed089724 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Fri, 2 Jul 2021 13:21:21 +0300 Subject: [PATCH] TT#128552 Add filtering by name for /api/billingprofiles Change-Id: I8b62b4b7ad4aec3d0538fb84a3b73e451fcb1db1 (cherry picked from commit c1752e7e820067c09044f121f473852ea9a2ed56) --- lib/NGCP/Panel/Controller/API/BillingProfiles.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm index e97b6cd503..d25dd7566f 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm @@ -44,6 +44,17 @@ sub query_params { second => sub {}, }, }, + { + param => 'name', + description => 'Filter for billing profiles with a specific name', + query => { + first => sub { + my $q = shift; + { name => { like => $q } }; + }, + second => sub {}, + }, + }, ]; }