Debian Codegraph @

rest-api/api-docs/recordings.json

raw symbols SCIP
1 {
2 "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
3 "_author": "David M. Lee, II <[email protected]>",
4 "_svn_revision": "$Revision$",
5 "apiVersion": "2.0.0",
6 "swaggerVersion": "1.1",
7 "basePath": "http://localhost:8088/ari",
8 "resourcePath": "/api-docs/recordings.{format}",
9 "since": [
10 "12.0.0"
11 ],
12 "requiresModules": [
13 "res_stasis_recording"
14 ],
15 "apis": [
16 {
17 "path": "/recordings/stored",
18 "description": "Recordings",
19 "operations": [
20 {
21 "httpMethod": "GET",
22 "since": [
23 "12.0.0"
24 ],
25 "summary": "List recordings that are complete.",
26 "nickname": "listStored",
27 "responseClass": "List[StoredRecording]"
28 }
29 ]
30 },
31 {
32 "path": "/recordings/stored/{recordingName}",
33 "description": "Individual recording",
34 "operations": [
35 {
36 "httpMethod": "GET",
37 "since": [
38 "12.0.0"
39 ],
40 "summary": "Get a stored recording's details.",
41 "nickname": "getStored",
42 "responseClass": "StoredRecording",
43 "parameters": [
44 {
45 "name": "recordingName",
46 "description": "The name of the recording",
47 "paramType": "path",
48 "required": true,
49 "allowMultiple": false,
50 "dataType": "string"
51 }
52 ],
53 "errorResponses": [
54 {
55 "code": 404,
56 "reason": "Recording not found"
57 }
58 ]
59 },
60 {
61 "httpMethod": "DELETE",
62 "since": [
63 "12.0.0"
64 ],
65 "summary": "Delete a stored recording.",
66 "nickname": "deleteStored",
67 "responseClass": "void",
68 "parameters": [
69 {
70 "name": "recordingName",
71 "description": "The name of the recording",
72 "paramType": "path",
73 "required": true,
74 "allowMultiple": false,
75 "dataType": "string"
76 }
77 ],
78 "errorResponses": [
79 {
80 "code": 404,
81 "reason": "Recording not found"
82 }
83 ]
84 }
85 ]
86 },
87 {
88 "path": "/recordings/stored/{recordingName}/file",
89 "description": "The actual file associated with the stored recording",
90 "operations": [
91 {
92 "httpMethod": "GET",
93 "since": [
94 "14.0.0"
95 ],
96 "summary": "Get the file associated with the stored recording.",
97 "nickname": "getStoredFile",
98 "responseClass": "binary",
99 "parameters": [
100 {
101 "name": "recordingName",
102 "description": "The name of the recording",
103 "paramType": "path",
104 "required": true,
105 "allowMultiple": false,
106 "dataType": "string"
107 }
108 ],
109 "errorResponses": [
110 {
111 "code": 403,
112 "reason": "The recording file could not be opened"
113 },
114 {
115 "code": 404,
116 "reason": "Recording not found"
117 }
118 ]
119 }
120 ]
121 },
122 {
123 "path": "/recordings/stored/{recordingName}/copy",
124 "description": "Copy an individual recording",
125 "operations": [
126 {
127 "httpMethod": "POST",
128 "since": [
129 "12.5.0"
130 ],
131 "summary": "Copy a stored recording.",
132 "nickname": "copyStored",
133 "responseClass": "StoredRecording",
134 "parameters": [
135 {
136 "name": "recordingName",
137 "description": "The name of the recording to copy",
138 "paramType": "path",
139 "required": true,
140 "allowMultiple": false,
141 "dataType": "string"
142 },
143 {
144 "name": "destinationRecordingName",
145 "description": "The destination name of the recording",
146 "paramType": "query",
147 "required": true,
148 "allowMultiple": false,
149 "dataType": "string"
150 }
151 ],
152 "errorResponses": [
153 {
154 "code": 404,
155 "reason": "Recording not found"
156 },
157 {
158 "code": 409,
159 "reason": "A recording with the same name already exists on the system"
160 }
161 ]
162 }
163 ]
164 },
165 {
166 "path": "/recordings/live/{recordingName}",
167 "description": "A recording that is in progress",
168 "operations": [
169 {
170 "httpMethod": "GET",
171 "since": [
172 "12.0.0"
173 ],
174 "summary": "List live recordings.",
175 "nickname": "getLive",
176 "responseClass": "LiveRecording",
177 "parameters": [
178 {
179 "name": "recordingName",
180 "description": "The name of the recording",
181 "paramType": "path",
182 "required": true,
183 "allowMultiple": false,
184 "dataType": "string"
185 }
186 ],
187 "errorResponses": [
188 {
189 "code": 404,
190 "reason": "Recording not found"
191 }
192 ]
193 },
194 {
195 "httpMethod": "DELETE",
196 "since": [
197 "12.0.0"
198 ],
199 "summary": "Stop a live recording and discard it.",
200 "nickname": "cancel",
201 "responseClass": "void",
202 "parameters": [
203 {
204 "name": "recordingName",
205 "description": "The name of the recording",
206 "paramType": "path",
207 "required": true,
208 "allowMultiple": false,
209 "dataType": "string"
210 }
211 ],
212 "errorResponses": [
213 {
214 "code": 404,
215 "reason": "Recording not found"
216 }
217 ]
218 }
219 ]
220 },
221 {
222 "path": "/recordings/live/{recordingName}/stop",
223 "operations": [
224 {
225 "httpMethod": "POST",
226 "since": [
227 "12.0.0"
228 ],
229 "summary": "Stop a live recording and store it.",
230 "nickname": "stop",
231 "responseClass": "void",
232 "parameters": [
233 {
234 "name": "recordingName",
235 "description": "The name of the recording",
236 "paramType": "path",
237 "required": true,
238 "allowMultiple": false,
239 "dataType": "string"
240 }
241 ],
242 "errorResponses": [
243 {
244 "code": 404,
245 "reason": "Recording not found"
246 }
247 ]
248 }
249 ]
250 },
251 {
252 "path": "/recordings/live/{recordingName}/pause",
253 "operations": [
254 {
255 "httpMethod": "POST",
256 "since": [
257 "12.0.0"
258 ],
259 "summary": "Pause a live recording.",
260 "notes": "Pausing a recording suspends silence detection, which will be restarted when the recording is unpaused. Paused time is not included in the accounting for maxDurationSeconds.",
261 "nickname": "pause",
262 "responseClass": "void",
263 "parameters": [
264 {
265 "name": "recordingName",
266 "description": "The name of the recording",
267 "paramType": "path",
268 "required": true,
269 "allowMultiple": false,
270 "dataType": "string"
271 }
272 ],
273 "errorResponses": [
274 {
275 "code": 404,
276 "reason": "Recording not found"
277 },
278 {
279 "code": 409,
280 "reason": "Recording not in session"
281 }
282 ]
283 },
284 {
285 "httpMethod": "DELETE",
286 "since": [
287 "12.0.0"
288 ],
289 "summary": "Unpause a live recording.",
290 "nickname": "unpause",
291 "responseClass": "void",
292 "parameters": [
293 {
294 "name": "recordingName",
295 "description": "The name of the recording",
296 "paramType": "path",
297 "required": true,
298 "allowMultiple": false,
299 "dataType": "string"
300 }
301 ],
302 "errorResponses": [
303 {
304 "code": 404,
305 "reason": "Recording not found"
306 },
307 {
308 "code": 409,
309 "reason": "Recording not in session"
310 }
311 ]
312 }
313 ]
314 },
315 {
316 "path": "/recordings/live/{recordingName}/mute",
317 "operations": [
318 {
319 "httpMethod": "POST",
320 "since": [
321 "12.0.0"
322 ],
323 "summary": "Mute a live recording.",
324 "notes": "Muting a recording suspends silence detection, which will be restarted when the recording is unmuted.",
325 "nickname": "mute",
326 "responseClass": "void",
327 "parameters": [
328 {
329 "name": "recordingName",
330 "description": "The name of the recording",
331 "paramType": "path",
332 "required": true,
333 "allowMultiple": false,
334 "dataType": "string"
335 }
336 ],
337 "errorResponses": [
338 {
339 "code": 404,
340 "reason": "Recording not found"
341 },
342 {
343 "code": 409,
344 "reason": "Recording not in session"
345 }
346 ]
347 },
348 {
349 "httpMethod": "DELETE",
350 "since": [
351 "12.0.0"
352 ],
353 "summary": "Unmute a live recording.",
354 "nickname": "unmute",
355 "responseClass": "void",
356 "parameters": [
357 {
358 "name": "recordingName",
359 "description": "The name of the recording",
360 "paramType": "path",
361 "required": true,
362 "allowMultiple": false,
363 "dataType": "string"
364 }
365 ],
366 "errorResponses": [
367 {
368 "code": 404,
369 "reason": "Recording not found"
370 },
371 {
372 "code": 409,
373 "reason": "Recording not in session"
374 }
375 ]
376 }
377 ]
378 }
379 ],
380 "models": {
381 "StoredRecording": {
382 "id": "StoredRecording",
383 "description": "A past recording that may be played back.",
384 "properties": {
385 "name": {
386 "required": true,
387 "type": "string"
388 },
389 "format": {
390 "required": true,
391 "type": "string"
392 }
393 }
394 },
395 "LiveRecording": {
396 "id": "LiveRecording",
397 "description": "A recording that is in progress",
398 "properties": {
399 "name": {
400 "required": true,
401 "type": "string",
402 "description": "Base name for the recording"
403 },
404 "format": {
405 "required": true,
406 "type": "string",
407 "description": "Recording format (wav, gsm, etc.)"
408 },
409 "target_uri": {
410 "required": true,
411 "type": "string",
412 "description": "URI for the channel or bridge being recorded"
413 },
414 "state": {
415 "required": true,
416 "type": "string",
417 "allowableValues": {
418 "valueType": "LIST",
419 "values": [
420 "queued",
421 "recording",
422 "paused",
423 "done",
424 "failed",
425 "canceled"
426 ]
427 }
428 },
429 "duration": {
430 "required": false,
431 "type": "int",
432 "description": "Duration in seconds of the recording"
433 },
434 "talking_duration": {
435 "required": false,
436 "type": "int",
437 "description": "Duration of talking, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds."
438 },
439 "silence_duration": {
440 "required": false,
441 "type": "int",
442 "description": "Duration of silence, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds."
443 },
444 "cause": {
445 "required": false,
446 "type": "string",
447 "description": "Cause for recording failure if failed"
448 }
449 }
450 }
451 }
452 }