You are here

function services_definition_index in Services Tools 7.3

Services callback; Retrieve definition of an endpoint's enabled resources.

1 string reference to 'services_definition_index'
services_definition_services_resources in services_definition/services_definition.module
Implements hook_services_resources().

File

services_definition/services_definition.resource.inc, line 10
Services module resource implementation for services_definition.

Code

function services_definition_index() {
  module_load_include('resource_build.inc', 'services');

  // Call _services_build_resources() directly instead of
  // services_get_resources to bypass caching.
  $resources = _services_build_resources();
  $endpoint = services_endpoint_load(services_get_server_info('endpoint', ''));
  return $endpoint;
}