Skip to content

Commit

Permalink
Update default services definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
boombatower committed Apr 5, 2012
1 parent 71a81af commit 4fc3131
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions includes/services.inc
Expand Up @@ -102,14 +102,35 @@ function conduit_services_resources() {
function conduit_default_services_endpoint() {
$enpoints = array();

$endpoint = new stdClass;
$endpoint = new stdClass();
$endpoint->disabled = FALSE; /* Edit this to true to make a default endpoint disabled initially */
$endpoint->api_version = 3;
$endpoint->name = 'conduit';
$endpoint->title = 'Conduit';
$endpoint->server = 'rest_server';
$endpoint->path = 'conduit';
$endpoint->authentication = array();
$endpoint->authentication = array(
'services' => 'services',
);
$endpoint->server_settings = array(
'rest_server' => array(
'formatters' => array(
'bencode' => TRUE,
'json' => TRUE,
'php' => TRUE,
'rss' => TRUE,
'xml' => TRUE,
'yaml' => TRUE,
'jsonp' => FALSE,
),
'parsers' => array(
'application/json' => TRUE,
'application/vnd.php.serialized' => TRUE,
'application/x-yaml' => TRUE,
'multipart/form-data' => TRUE,
'application/x-www-form-urlencoded' => FALSE,
),
),
);
$endpoint->resources = array(
'item' => array(
'actions' => array(
Expand Down

0 comments on commit 4fc3131

Please sign in to comment.