...
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
$endpoint = new stdClass(); $endpoint->disabled = FALSE; /* Edit this to true to make a default endpoint disabled initially */ $endpoint->api_version = 3; $endpoint->name = 'bandoapi'; $endpoint->server = 'rest_server'; $endpoint->path = 'api/v1'; $endpoint->authentication = array(); $endpoint->server_settings = array( 'formatters' => array( 'json' => TRUE, 'bencode' => FALSE, 'jsonp' => FALSE, 'php' => FALSE, 'xml' => FALSE, ), 'parsers' => array( 'application/json' => TRUE, 'application/vnd.php.serialized' => FALSE, 'application/x-www-form-urlencoded' => FALSE, 'application/xml' => FALSE, 'multipart/form-data' => FALSE, 'text/xml' => FALSE, ), ); $endpoint->resources = array( 'bandi-file-bando-counter' => array( 'operations' => array( 'retrieveindex' => array( 'enabled' => '1', ), ), ), 'bandi-file-bando-list' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), 'nodebandi-list' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), 'systembandi-paragraph-files-counter' => array( 'actionsoperations' => array( 'connectindex' => array( 'enabled' => '1', ), ), ), 'taxonomy_termbandi-paragraph-files-list' => array( 'operations' => array( 'retrieveindex' => array( 'enabled' => '1', ), ), ), 'count-bandi' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), 'taxonomy_vocabularyfile' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), ), 'toli-bandinode' => array( 'operations' => array( 'index' => array( 'enabled' => '1', ), ), ), 'system' => array( 'actions' => array( 'connect' => array( 'enabled' => '1', ), ), ), 'taxonomy_term' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), ), 'taxonomy_vocabulary' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), ), 'user' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), 'index' => array( 'enabled' => '1', ), ), ), 'views' => array( 'operations' => array( 'retrieve' => array( 'enabled' => '1', ), ), ), ); $endpoint->debug = 0; |
...