summaryrefslogtreecommitdiff
path: root/rest-api/api-docs/playback.json
blob: 38ca5e1a7aafbb817661cc997fb510472e2fb820 (plain)
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
{
	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
	"_author": "David M. Lee, II <dlee@digium.com>",
	"_svn_revision": "$Revision$",
	"apiVersion": "0.0.1",
	"swaggerVersion": "1.1",
	"basePath": "http://localhost:8088/stasis",
	"resourcePath": "/api-docs/playback.{format}",
	"apis": [
		{
			"path": "/playback/{playbackId}",
			"description": "Control object for a playback operation.",
			"operations": [
				{
					"httpMethod": "GET",
					"summary": "Get a playback's details.",
					"nickname": "getPlayback",
					"responseClass": "Playback",
					"parameters": [
						{
							"name": "playbackId",
							"description": "Playback's id",
							"paramType": "path",
							"required": true,
							"allowMultiple": false,
							"dataType": "string"
						}
					]
				},
				{
					"httpMethod": "DELETE",
					"summary": "Stop a playback.",
					"nickname": "stopPlayback",
					"responseClass": "Playback",
					"parameters": [
						{
							"name": "playbackId",
							"description": "Playback's id",
							"paramType": "path",
							"required": true,
							"allowMultiple": false,
							"dataType": "string"
						}
					]
				}
			]
		},
		{
			"path": "/playback/{playbackId}/control",
			"description": "Control object for a playback operation.",
			"operations": [
				{
					"httpMethod": "POST",
					"summary": "Get a playback's details.",
					"nickname": "controlPlayback",
					"responseClass": "Playback",
					"parameters": [
						{
							"name": "playbackId",
							"description": "Playback's id",
							"paramType": "path",
							"required": true,
							"allowMultiple": false,
							"dataType": "string"
						},
						{
							"name": "operation",
							"description": "Operation to perform on the playback.",
							"paramType": "query",
							"required": true,
							"allowMultiple": false,
							"dataType": "string",
							"allowableValues": {
								"valueType": "LIST",
								"values": [
									"restart",
									"pause",
									"unpause",
									"reverse",
									"forward"
								]
							}
						}
					],
					"errorResponses": [
						{
							"code": 400,
							"reason": "The provided operation parameter was invalid"
						},
						{
							"code": 404,
							"reason": "The playback cannot be found"
						},
						{
							"code": 409,
							"reason": "The operation cannot be performed in the playback's current state"
						}
]
				}
			]
		}
	],
	"models": {
		"Playback": {
			"id": "Playback",
			"properties": {
				"id": {
					"required": true,
					"description": "Playback's identifier.",
					"type": "string"
				}
			}
		}
	}
}