-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (116 loc) · 2.05 KB
/
index.html
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
</head>
<body>
<div id="container">
<header>
</header>
<div id="main" role="main">
<h1>Metastream event management API</h1>
<h2>Server Applications</h2>
<h3>POST /listen/[filter]</h3>
<pre class="request">
{
"app" : "[name]",
"endpoint" : "[uri]"
}</pre>
<pre class="response">
{
"result" : "OK"
}</pre>
<h3>POST /say/[filter]</h3>
<pre class="request">
{
"app" : "[name]",
"payload" : {[event data]}
}</pre>
<pre class="response">
{
"result" : "OK"
}</pre>
<h3>POST /filters</h3>
<pre class="request">
{
"channels" : ["channel1","channel2",...]
}</pre>
<pre class="response">
{
"result" : "OK",
"filter" : "%5E(channel(1%7C2))%24"
}</pre>
<h2>Data Applications</h2>
<h3>GET /channels/[channel]/</h3>
<pre class="response">
[
{
"start" : 0,
...
},
{
"start" : 100,
"duration" : "5000",
...
},
...
]</pre>
<h3>GET /channels/[channel]/[timecode]/</h3>
<pre class="response">
[
{
"start" : [timecode],
...
},
{
"start" : [timecode],
"duration" : "5000",
...
},
...
]</pre>
<h3>GET /channels/[channel]/[timecode]/[id]</h3>
<pre class="response">
[
{
"id" : [id]
"start" : [timecode],
...
},
...
]</pre>
<h3>PUT /channels/[channel]/[timecode]/[id]</h3>
<pre class="request">
{
...
}</pre>
<pre class="response">
{
"result" : "OK"
}</pre>
<h3>DELETE /channels/[channel]</h3>
<pre class="response">
{
"result" : "OK"
}</pre>
<h3>DELETE /channels/[channel]/[timecode]</h3>
<pre class="response">
{
"result" : "OK"
}</pre class="response">
<h3>DELETE /channels/[channel]/[timecode]/[id]</h3>
<pre>
{
"result" : "OK"
}</pre>
</div>
<footer>
</footer>
</div>
</body>
</html>