Commit ba83ce18 authored by istos's avatar istos

UPdate bat_api with new settings

parent d9ec245c
...@@ -36,7 +36,7 @@ function bat_api_default_services_endpoint() { ...@@ -36,7 +36,7 @@ function bat_api_default_services_endpoint() {
), ),
); );
$endpoint->resources = array( $endpoint->resources = array(
'units' => array( 'events' => array(
'operations' => array( 'operations' => array(
'index' => array( 'index' => array(
'enabled' => '1', 'enabled' => '1',
...@@ -45,27 +45,30 @@ function bat_api_default_services_endpoint() { ...@@ -45,27 +45,30 @@ function bat_api_default_services_endpoint() {
'enabled' => '1', 'enabled' => '1',
), ),
), ),
'actions' => array(
'add' => array(
'enabled' => '1',
),
),
), ),
'units-calendar' => array( 'events-calendar' => array(
'operations' => array( 'operations' => array(
'index' => array( 'index' => array(
'enabled' => '1', 'enabled' => '1',
), ),
), ),
), ),
'events' => array( 'units' => array(
'operations' => array( 'operations' => array(
'index' => array( 'index' => array(
'enabled' => '1', 'enabled' => '1',
), ),
'update' => array(
'enabled' => '1',
),
),
'actions' => array(
'add' => array(
'enabled' => '1',
),
), ),
), ),
'events-calendar' => array( 'units-calendar' => array(
'operations' => array( 'operations' => array(
'index' => array( 'index' => array(
'enabled' => '1', 'enabled' => '1',
...@@ -76,6 +79,11 @@ function bat_api_default_services_endpoint() { ...@@ -76,6 +79,11 @@ function bat_api_default_services_endpoint() {
'actions' => array( 'actions' => array(
'login' => array( 'login' => array(
'enabled' => '1', 'enabled' => '1',
'settings' => array(
'services' => array(
'resource_api_version' => '1.0',
),
),
), ),
'logout' => array( 'logout' => array(
'enabled' => '1', 'enabled' => '1',
...@@ -85,6 +93,9 @@ function bat_api_default_services_endpoint() { ...@@ -85,6 +93,9 @@ function bat_api_default_services_endpoint() {
), ),
), ),
), ),
'token' => array(
'enabled' => '1',
),
), ),
), ),
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment