Debian Codegraph @

rest-api/api-docs/playbacks.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/playbacks.{format}",
9 "since": [
10 "12.0.0"
11 ],
12 "requiresModules": [
13 "res_stasis_playback"
14 ],
15 "apis": [
16 {
17 "path": "/playbacks/{playbackId}",
18 "description": "Control object for a playback operation.",
19 "operations": [
20 {
21 "httpMethod": "GET",
22 "since": [
23 "12.0.0"
24 ],
25 "summary": "Get a playback's details.",
26 "nickname": "get",
27 "responseClass": "Playback",
28 "parameters": [
29 {
30 "name": "playbackId",
31 "description": "Playback's id",
32 "paramType": "path",
33 "required": true,
34 "allowMultiple": false,
35 "dataType": "string"
36 }
37 ],
38 "errorResponses": [
39 {
40 "code": 404,
41 "reason": "The playback cannot be found"
42 }
43 ]
44 },
45 {
46 "httpMethod": "DELETE",
47 "since": [
48 "12.0.0"
49 ],
50 "summary": "Stop a playback.",
51 "nickname": "stop",
52 "responseClass": "void",
53 "parameters": [
54 {
55 "name": "playbackId",
56 "description": "Playback's id",
57 "paramType": "path",
58 "required": true,
59 "allowMultiple": false,
60 "dataType": "string"
61 }
62 ],
63 "errorResponses": [
64 {
65 "code": 404,
66 "reason": "The playback cannot be found"
67 }
68 ]
69 }
70 ]
71 },
72 {
73 "path": "/playbacks/{playbackId}/control",
74 "description": "Control object for a playback operation.",
75 "operations": [
76 {
77 "httpMethod": "POST",
78 "since": [
79 "12.0.0"
80 ],
81 "summary": "Control a playback.",
82 "nickname": "control",
83 "responseClass": "void",
84 "parameters": [
85 {
86 "name": "playbackId",
87 "description": "Playback's id",
88 "paramType": "path",
89 "required": true,
90 "allowMultiple": false,
91 "dataType": "string"
92 },
93 {
94 "name": "operation",
95 "description": "Operation to perform on the playback.",
96 "paramType": "query",
97 "required": true,
98 "allowMultiple": false,
99 "dataType": "string",
100 "allowableValues": {
101 "valueType": "LIST",
102 "values": [
103 "restart",
104 "pause",
105 "unpause",
106 "reverse",
107 "forward"
108 ]
109 }
110 }
111 ],
112 "errorResponses": [
113 {
114 "code": 400,
115 "reason": "The provided operation parameter was invalid"
116 },
117 {
118 "code": 404,
119 "reason": "The playback cannot be found"
120 },
121 {
122 "code": 409,
123 "reason": "The operation cannot be performed in the playback's current state"
124 }
125 ]
126 }
127 ]
128 }
129 ],
130 "models": {
131 "Playback": {
132 "id": "Playback",
133 "description": "Object representing the playback of media to a channel",
134 "properties": {
135 "id": {
136 "type": "string",
137 "description": "ID for this playback operation",
138 "required": true
139 },
140 "media_uri": {
141 "type": "string",
142 "description": "The URI for the media currently being played back.",
143 "required": true
144 },
145 "next_media_uri": {
146 "type": "string",
147 "description": "If a list of URIs is being played, the next media URI to be played back.",
148 "required": false
149 },
150 "target_uri": {
151 "type": "string",
152 "description": "URI for the channel or bridge to play the media on",
153 "required": true
154 },
155 "language": {
156 "type": "string",
157 "description": "For media types that support multiple languages, the language requested for playback."
158 },
159 "state": {
160 "type": "string",
161 "description": "Current state of the playback operation.",
162 "required": true,
163 "allowableValues": {
164 "valueType": "LIST",
165 "values": [
166 "queued",
167 "playing",
168 "continuing",
169 "done",
170 "failed"
171 ]
172 }
173 }
174 }
175 }
176 }
177 }