From a4cbfa38ca701136876988bf55ac1f2ce5fd86c6 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Tue, 27 Mar 2018 07:08:44 +0200 Subject: [PATCH] TT#34566 Fix /api/ call response code Change-Id: I9df736e669cf71514d1c5f227ccd7ff4739d08d5 --- lib/NGCP/Panel/Controller/API/PhonebookEntries.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/API/PhonebookEntries.pm b/lib/NGCP/Panel/Controller/API/PhonebookEntries.pm index 2e95e85795..42f213b997 100644 --- a/lib/NGCP/Panel/Controller/API/PhonebookEntries.pm +++ b/lib/NGCP/Panel/Controller/API/PhonebookEntries.pm @@ -24,7 +24,11 @@ sub allowed_methods{ sub api_description { return 'Defines Phonebook number entries. You can POST numbers individually one-by-one using json. To bulk-upload numbers, specify the Content-Type as "text/csv" and POST the CSV in the request body to the collection with an optional parameter "purge_existing=true", like "/api/phonebookentries/?purge_existing=true"'; -}; +} + +sub order_by_cols { + return {name => 'me.name', number => 'me.number', shared => 'me.shared'}; +} sub query_params { return [