From 83ce10891f3a9a82893de735f500d9dc4794c3f1 Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Tue, 26 May 2015 11:15:53 -0300 Subject: [PATCH] Re-exported services. --- islandora/islandora.module | 53 +++++++++++++++----------------------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/islandora/islandora.module b/islandora/islandora.module index 6c65c741..990f3fe9 100644 --- a/islandora/islandora.module +++ b/islandora/islandora.module @@ -77,7 +77,9 @@ function islandora_default_services_endpoint() { $endpoint->name = 'islandora'; $endpoint->server = 'rest_server'; $endpoint->path = 'islandora'; - $endpoint->authentication = array(); + $endpoint->authentication = array( + 'services' => 'services', + ); $endpoint->server_settings = array( 'formatters' => array( 'json' => TRUE, @@ -101,9 +103,6 @@ function islandora_default_services_endpoint() { 'retrieve' => array( 'enabled' => '1', ), - 'create' => array( - 'enabled' => '1', - ), 'update' => array( 'enabled' => '1', ), @@ -128,51 +127,41 @@ function islandora_default_services_endpoint() { ), ), ), - 'user' => array( + 'rdf_mapping' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), - 'create' => array( - 'enabled' => '1', - ), - 'update' => array( - 'enabled' => '1', - ), - 'delete' => array( - 'enabled' => '1', - ), - 'index' => array( + ), + ), + 'system' => array( + 'actions' => array( + 'connect' => array( 'enabled' => '1', ), ), + ), + 'user' => array( 'actions' => array( 'login' => array( 'enabled' => '1', + 'settings' => array( + 'services' => array( + 'resource_api_version' => '1.0', + ), + ), ), 'logout' => array( 'enabled' => '1', + 'settings' => array( + 'services' => array( + 'resource_api_version' => '1.0', + ), + ), ), 'token' => array( 'enabled' => '1', ), - 'request_new_password' => array( - 'enabled' => '1', - ), - 'register' => array( - 'enabled' => '1', - ), - ), - 'targeted_actions' => array( - 'cancel' => array( - 'enabled' => '1', - ), - 'password_reset' => array( - 'enabled' => '1', - ), - 'resend_welcome_email' => array( - 'enabled' => '1', - ), ), ), );