123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- {
- "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
- "_author": "David M. Lee, II <dlee@digium.com>",
- "_svn_revision": "$Revision$",
- "apiVersion": "1.10.0",
- "swaggerVersion": "1.1",
- "basePath": "http://localhost:8088/ari",
- "resourcePath": "/api-docs/recordings.{format}",
- "apis": [
- {
- "path": "/recordings/stored",
- "description": "Recordings",
- "operations": [
- {
- "httpMethod": "GET",
- "summary": "List recordings that are complete.",
- "nickname": "listStored",
- "responseClass": "List[StoredRecording]"
- }
- ]
- },
- {
- "path": "/recordings/stored/{recordingName}",
- "description": "Individual recording",
- "operations": [
- {
- "httpMethod": "GET",
- "summary": "Get a stored recording's details.",
- "nickname": "getStored",
- "responseClass": "StoredRecording",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- }
- ]
- },
- {
- "httpMethod": "DELETE",
- "summary": "Delete a stored recording.",
- "nickname": "deleteStored",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- }
- ]
- }
- ]
- },
- {
- "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": [
- {
- "httpMethod": "GET",
- "summary": "List live recordings.",
- "nickname": "getLive",
- "responseClass": "LiveRecording",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- }
- ]
- },
- {
- "httpMethod": "DELETE",
- "summary": "Stop a live recording and discard it.",
- "nickname": "cancel",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- }
- ]
- }
- ]
- },
- {
- "path": "/recordings/live/{recordingName}/stop",
- "operations": [
- {
- "httpMethod": "POST",
- "summary": "Stop a live recording and store it.",
- "nickname": "stop",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- }
- ]
- }
- ]
- },
- {
- "path": "/recordings/live/{recordingName}/pause",
- "operations": [
- {
- "httpMethod": "POST",
- "summary": "Pause a live recording.",
- "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.",
- "nickname": "pause",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- },
- {
- "code": 409,
- "reason": "Recording not in session"
- }
- ]
- },
- {
- "httpMethod": "DELETE",
- "summary": "Unpause a live recording.",
- "nickname": "unpause",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- },
- {
- "code": 409,
- "reason": "Recording not in session"
- }
- ]
- }
- ]
- },
- {
- "path": "/recordings/live/{recordingName}/mute",
- "operations": [
- {
- "httpMethod": "POST",
- "summary": "Mute a live recording.",
- "notes": "Muting a recording suspends silence detection, which will be restarted when the recording is unmuted.",
- "nickname": "mute",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- },
- {
- "code": 409,
- "reason": "Recording not in session"
- }
- ]
- },
- {
- "httpMethod": "DELETE",
- "summary": "Unmute a live recording.",
- "nickname": "unmute",
- "responseClass": "void",
- "parameters": [
- {
- "name": "recordingName",
- "description": "The name of the recording",
- "paramType": "path",
- "required": true,
- "allowMultiple": false,
- "dataType": "string"
- }
- ],
- "errorResponses": [
- {
- "code": 404,
- "reason": "Recording not found"
- },
- {
- "code": 409,
- "reason": "Recording not in session"
- }
- ]
- }
- ]
- }
- ],
- "models": {
- "StoredRecording": {
- "id": "StoredRecording",
- "description": "A past recording that may be played back.",
- "properties": {
- "name": {
- "required": true,
- "type": "string"
- },
- "format": {
- "required": true,
- "type": "string"
- }
- }
- },
- "LiveRecording": {
- "id": "LiveRecording",
- "description": "A recording that is in progress",
- "properties": {
- "name": {
- "required": true,
- "type": "string",
- "description": "Base name for the recording"
- },
- "format": {
- "required": true,
- "type": "string",
- "description": "Recording format (wav, gsm, etc.)"
- },
- "target_uri": {
- "required": true,
- "type": "string",
- "description": "URI for the channel or bridge being recorded"
- },
- "state": {
- "required": true,
- "type": "string",
- "allowableValues": {
- "valueType": "LIST",
- "values": [
- "queued",
- "recording",
- "paused",
- "done",
- "failed",
- "canceled"
- ]
- }
- },
- "duration": {
- "required": false,
- "type": "int",
- "description": "Duration in seconds of the recording"
- },
- "talking_duration": {
- "required": false,
- "type": "int",
- "description": "Duration of talking, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds."
- },
- "silence_duration": {
- "required": false,
- "type": "int",
- "description": "Duration of silence, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds."
- },
- "cause": {
- "required": false,
- "type": "string",
- "description": "Cause for recording failure if failed"
- }
- }
- }
- }
- }
|