protected function ServicesRESTServerFactory::getResources in Services 7.3
1 call to ServicesRESTServerFactory::getResources()
- ServicesRESTServerFactory::getRESTServer in servers/
rest_server/ includes/ ServicesRESTServerFactory.inc
1 method overrides ServicesRESTServerFactory::getResources()
- MockServicesRESTServerFactory::getResources in servers/
rest_server/ tests/ rest_server_mock_classes.inc
File
- servers/
rest_server/ includes/ ServicesRESTServerFactory.inc, line 47
Class
- ServicesRESTServerFactory
- Factory class to build RESTServer object.
Code
protected function getResources() {
$endpoint_name = services_get_server_info('endpoint', '');
$endpoint = services_endpoint_load($endpoint_name);
$resources = services_get_resources($endpoint->name);
module_load_include('inc', 'services', 'includes/services.resource_build');
_services_apply_endpoint($resources, $endpoint, TRUE);
return $resources;
}