summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-07-18 21:48:46 +0000
committerMatthew Jordan <mjordan@digium.com>2014-07-18 21:48:46 +0000
commitb299052e203807c9a2111eb2cd919246d7589cb3 (patch)
treeed02894e1620cc9d0113aa4449b168fa76f01186 /rest-api
parenteaf1225b40308f643272a7f7715c7b46aa075f83 (diff)
ari: Add a copy operation for stored recordings
This patch adds a new operation for stored recordings, copy. It takes an existing stored recording and makes a copy of it in the same directory or a relative directory under the stored recording directory. /ari/recordings/stored/{recordingName}/copy?destinationRecordingName={copy_name} This is particularly useful for voicemail-esque applications, which may need to copy or move recordings around a directory structure. Review: https://reviewboard.asterisk.org/r/3768/ ASTERISK-24036 #close Reported by: Sam Galarneau Tested by: Sam Galarneau ........ Merged revisions 419021 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/recordings.json40
1 files changed, 40 insertions, 0 deletions
diff --git a/rest-api/api-docs/recordings.json b/rest-api/api-docs/recordings.json
index 1f825a2b0..54daa33cf 100644
--- a/rest-api/api-docs/recordings.json
+++ b/rest-api/api-docs/recordings.json
@@ -70,6 +70,46 @@
]
},
{
+ "path": "/recordings/stored/{recordingName}/copy",
+ "description": "Copy an individual recording",
+ "operations": [
+ {
+ "httpMethod": "POST",
+ "summary": "Copy a stored recording.",
+ "nickname": "copyStored",
+ "responseClass": "StoredRecording",
+ "parameters": [
+ {
+ "name": "recordingName",
+ "description": "The name of the recording to copy",
+ "paramType": "path",
+ "required": true,
+ "allowMultiple": false,
+ "dataType": "string"
+ },
+ {
+ "name": "destinationRecordingName",
+ "description": "The destination name of the recording",
+ "paramType": "query",
+ "required": true,
+ "allowMultiple": false,
+ "dataType": "string"
+ }
+ ],
+ "errorResponses": [
+ {
+ "code": 404,
+ "reason": "Recording not found"
+ },
+ {
+ "code": 409,
+ "reason": "A recording with the same name already exists on the system"
+ }
+ ]
+ }
+ ]
+ },
+ {
"path": "/recordings/live/{recordingName}",
"description": "A recording that is in progress",
"operations": [