You are here

services_definition.resource.inc in Services Tools 7.3

Services module resource implementation for services_definition.

File

services_definition/services_definition.resource.inc
View source
<?php

/**
 * @file
 * Services module resource implementation for services_definition.
 */

/**
 * Services callback; Retrieve definition of an endpoint's enabled resources.
 */
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;
}

Functions

Namesort descending Description
services_definition_index Services callback; Retrieve definition of an endpoint's enabled resources.