function deploy_example_deploy_endpoints_default in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 modules/deploy_example/deploy_example.deploy_endpoints.inc \deploy_example_deploy_endpoints_default()
Implements hook_deploy_endpoints_default().
File
- modules/
deploy_example/ deploy_example.deploy_endpoints.inc, line 10 - deploy_example.deploy_endpoints.inc
Code
function deploy_example_deploy_endpoints_default() {
$export = array();
$endpoint = new DeployEndpoint();
$endpoint->disabled = FALSE;
/* Edit this to true to make a default endpoint disabled initially */
$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;
}