forked from apigeecs/smartdocs_service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmartdocs_service.services.inc
80 lines (77 loc) · 1.87 KB
/
smartdocs_service.services.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* @file
* smartdocs_service.services.inc
*/
/**
* Implements hook_default_services_endpoint().
*/
function smartdocs_service_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 = 'smartdocs_service';
$endpoint->server = 'rest_server';
$endpoint->path = 'smartdocs/apis';
$endpoint->authentication = array(
'services_basic_auth' => 'services_basic_auth',
);
$endpoint->server_settings = array(
'formatters' => array(
'json' => TRUE,
'bencode' => FALSE,
'jsonp' => FALSE,
'php' => FALSE,
'xml' => FALSE,
'yaml' => FALSE,
),
'parsers' => array(
'application/json' => TRUE,
'application/x-www-form-urlencoded' => TRUE,
'application/x-yaml' => TRUE,
'multipart/form-data' => TRUE,
'application/vnd.php.serialized' => FALSE,
'application/xml' => FALSE,
'text/xml' => FALSE,
),
);
$endpoint->resources = array(
'smartdocs' => array(
'alias' => 'models',
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
'create' => array(
'enabled' => '1',
),
'update' => array(
'enabled' => '1',
),
'delete' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
'actions' => array(
'queue_status' => array(
'enabled' => '1',
),
),
'targeted_actions' => array(
'render' => array(
'enabled' => '1',
),
'import' => array(
'enabled' => '1',
),
),
),
);
$endpoint->debug = 0;
$export['smartdocs_service'] = $endpoint;
return $export;
}