services_tools_example.services.inc in Services Tools 7.3
Bulk export of services objects generated by Bulk export module.
File
services_historical/services_tools_example/services_tools_example.services.incView source
<?php
/**
* @file
* Bulk export of services objects generated by Bulk export module.
*/
/**
* Implements hook_default_services_endpoint().
*/
function services_tools_example_default_services_endpoint() {
$endpoints = array();
$endpoint = new stdClass();
$endpoint->disabled = FALSE;
/* Edit this to true to make a default endpoint disabled initially */
$endpoint->api_version = 3;
$endpoint->name = 'services_tools_example';
$endpoint->server = 'rest_server';
$endpoint->path = 'example';
$endpoint->authentication = array(
'services' => 'services',
);
$endpoint->server_settings = '';
$endpoint->resources = array(
'paste' => array(
'operations' => array(
'create' => array(
'enabled' => 1,
),
'retrieve' => array(
'enabled' => 1,
),
),
),
);
$endpoint->debug = 0;
$endpoints['services_tools_example'] = $endpoint;
return $endpoints;
}
Functions
Name | Description |
---|---|
services_tools_example_default_services_endpoint | Implements hook_default_services_endpoint(). |