You are here

function services_definition_services_resources in Services Tools 7.3

Implements hook_services_resources().

File

services_definition/services_definition.module, line 10
Provide API documentation for a services module endpoint.

Code

function services_definition_services_resources() {
  $resources['definition'] = array();
  $resources['definition']['index'] = array(
    'help' => 'Retrieves the definition of the website.',
    'file' => array(
      'type' => 'inc',
      'module' => 'services_definition',
      'name' => 'services_definition.resource',
    ),
    'callback' => 'services_definition_index',
    'access callback' => 'user_access',
    'access arguments append' => FALSE,
    'access arguments' => array(
      'retrieve definition',
    ),
    'args' => array(),
  );
  return $resources;
}