deploy_example.deploy_endpoints.inc in Deploy - Content Staging 7.3
File
modules/deploy_example/deploy_example.deploy_endpoints.inc
View source
<?php
function deploy_example_deploy_endpoints_default() {
$export = array();
$endpoint = new DeployEndpoint();
$endpoint->disabled = FALSE;
$endpoint->api_version = 1;
$endpoint->name = 'deploy_example_endpoint';
$endpoint->title = 'Example endpoint';
$endpoint->description = 'Example endpoint using session authentication (but no pre-configured user credentials). Works well with the UUID Services Example feature on the endpoint site.';
$endpoint->debug = 1;
$endpoint->authenticator_plugin = 'DeployAuthenticatorSession';
$endpoint->authenticator_config = array(
'username' => '',
'password' => '',
);
$endpoint->service_plugin = 'DeployServiceRestJSON';
$endpoint->service_config = array(
'url' => 'http://example.com/api',
);
$export['deploy_example_endpoint'] = $endpoint;
return $export;
}