$endpoint = new stdClass(); $endpoint->disabled = FALSE; $endpoint->api_version = 3; $endpoint->name = 'public'; $endpoint->server = 'rest_server'; $endpoint->path = 'api/public'; $endpoint->authentication = array(); $endpoint->server_settings = array( 'formatters' => array( 'json' => TRUE, 'xml' => TRUE, 'bencode' => FALSE, 'jsonp' => FALSE, 'php' => FALSE, 'yaml' => FALSE, ), 'parsers' => array( 'application/json' => TRUE, 'application/xml' => TRUE, 'application/vnd.php.serialized' => FALSE, 'application/x-www-form-urlencoded' => FALSE, 'application/x-yaml' => FALSE, 'multipart/form-data' => FALSE, 'text/xml' => FALSE, ), ); $endpoint->resources = array( 'file' => array( 'alias' => 'files', 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), ), 'image_artifacts' => array( 'alias' => 'image_artifacts', 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), 'node' => array( 'alias' => 'nodes', 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), 'relationships' => array( 'files' => array( 'enabled' => '1', ), ), ), ); $endpoint->debug = 0;