-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #10 - Added cadaveres_api service + rest dependency.
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...les/features/general/ft_c_inmobiliarios_services/ft_c_inmobiliarios_services.services.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* @file | ||
* ft_c_inmobiliarios_services.services.inc | ||
*/ | ||
|
||
/** | ||
* Implements hook_default_services_endpoint(). | ||
*/ | ||
function ft_c_inmobiliarios_services_default_services_endpoint() { | ||
$export = array(); | ||
|
||
$endpoint = new stdClass(); | ||
$endpoint->disabled = FALSE; /* Edit this to true to make a default endpoint disabled initially */ | ||
$endpoint->api_version = 3; | ||
$endpoint->name = 'cadaveres_api'; | ||
$endpoint->server = 'rest_server'; | ||
$endpoint->path = 'api'; | ||
$endpoint->authentication = array(); | ||
$endpoint->server_settings = array(); | ||
$endpoint->resources = array( | ||
'lista-general' => array( | ||
'operations' => array( | ||
'index' => array( | ||
'enabled' => '1', | ||
), | ||
), | ||
), | ||
); | ||
$endpoint->debug = 0; | ||
$export['cadaveres_api'] = $endpoint; | ||
|
||
return $export; | ||
} |