From ba83ce186dcf65cc9db2f2999be12241bc2ea271 Mon Sep 17 00:00:00 2001 From: istos Date: Fri, 15 Jan 2016 05:53:23 +0100 Subject: [PATCH] UPdate bat_api with new settings --- bat_api.services.inc | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/bat_api.services.inc b/bat_api.services.inc index f18f123..b080f8f 100644 --- a/bat_api.services.inc +++ b/bat_api.services.inc @@ -36,7 +36,7 @@ function bat_api_default_services_endpoint() { ), ); $endpoint->resources = array( - 'units' => array( + 'events' => array( 'operations' => array( 'index' => array( 'enabled' => '1', @@ -45,27 +45,30 @@ function bat_api_default_services_endpoint() { 'enabled' => '1', ), ), - 'actions' => array( - 'add' => array( - 'enabled' => '1', - ), - ), ), - 'units-calendar' => array( + 'events-calendar' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), - 'events' => array( + 'units' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), + 'update' => array( + 'enabled' => '1', + ), + ), + 'actions' => array( + 'add' => array( + 'enabled' => '1', + ), ), ), - 'events-calendar' => array( + 'units-calendar' => array( 'operations' => array( 'index' => array( 'enabled' => '1', @@ -76,6 +79,11 @@ function bat_api_default_services_endpoint() { 'actions' => array( 'login' => array( 'enabled' => '1', + 'settings' => array( + 'services' => array( + 'resource_api_version' => '1.0', + ), + ), ), 'logout' => array( 'enabled' => '1', @@ -85,6 +93,9 @@ function bat_api_default_services_endpoint() { ), ), ), + 'token' => array( + 'enabled' => '1', + ), ), ), ); -- GitLab