|
|
|
@ -32,7 +32,23 @@ function islandora_default_services_endpoint() {
|
|
|
|
|
$endpoint->server = 'rest_server'; |
|
|
|
|
$endpoint->path = 'islandora'; |
|
|
|
|
$endpoint->authentication = array(); |
|
|
|
|
$endpoint->server_settings = array(); |
|
|
|
|
$endpoint->server_settings = array( |
|
|
|
|
'formatters' => array( |
|
|
|
|
'json' => TRUE, |
|
|
|
|
'bencode' => FALSE, |
|
|
|
|
'jsonp' => FALSE, |
|
|
|
|
'php' => FALSE, |
|
|
|
|
'xml' => FALSE, |
|
|
|
|
), |
|
|
|
|
'parsers' => array( |
|
|
|
|
'application/json' => TRUE, |
|
|
|
|
'application/vnd.php.serialized' => FALSE, |
|
|
|
|
'application/x-www-form-urlencoded' => FALSE, |
|
|
|
|
'application/xml' => FALSE, |
|
|
|
|
'multipart/form-data' => FALSE, |
|
|
|
|
'text/xml' => FALSE, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
$endpoint->resources = array( |
|
|
|
|
'node' => array( |
|
|
|
|
'operations' => array( |
|
|
|
|