-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvideo_annotator.services.inc
57 lines (56 loc) · 1.39 KB
/
video_annotator.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
<?php
function video_annotator_default_services_endpoint() {
$endpoints = array();
$endpoint = new stdClass();
/* Edit this to true to make a default endpoint disabled initially */
$endpoint->disabled = FALSE;
$endpoint->api_version = 3;
$endpoint->name = 'video_annotations';
$endpoint->server = 'rest_server';
$endpoint->path = 'video_annotation';
$endpoint->authentication = array(
'services' => 'services',
);
$endpoint->server_settings = array(
'formatters' => array(
'json' => TRUE,
'bencode' => FALSE,
'jsonp' => FALSE,
'php' => FALSE,
'xml' => FALSE,
),
'parsers' => array(
'application/json' => TRUE,
'application/vnd.php.serialized' => FALSE,
'application/x-www-form-urlencoded' => FALSE,
'application/xml' => FALSE,
'multipart/form-data' => FALSE,
'text/xml' => FALSE,
),
);
$endpoint->resources = array(
'video_annotation' => array(
'operations' => array(
'create' => array(
'enabled' => '1',
),
'retrieve' => array(
'enabled' => '1',
),
'update' => array(
'enabled' => '1',
),
'delete' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
),
);
$endpoint->debug = 1;
$endpoints[] = $endpoint;
return $endpoints;
}
?>