summaryrefslogtreecommitdiff
path: root/rest-api/api-docs/sounds.json
blob: dd0b717556cce4b3866f9a3e9e307014ac67ff67 (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
{
	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
	"_author": "David M. Lee, II <dlee@digium.com>",
	"_svn_revision": "$Revision$",
	"apiVersion": "1.5.0",
	"swaggerVersion": "1.1",
	"basePath": "http://localhost:8088/ari",
	"resourcePath": "/api-docs/sounds.{format}",
	"apis": [
		{
			"path": "/sounds",
			"description": "Sounds",
			"operations": [
				{
					"httpMethod": "GET",
					"summary": "List all sounds.",
					"nickname": "list",
					"responseClass": "List[Sound]",
					"parameters": [
						{
							"name": "lang",
							"description": "Lookup sound for a specific language.",
							"paramType": "query",
							"dataType": "string",
							"required": false
						},
						{
							"name": "format",
							"description": "Lookup sound in a specific format.",
							"paramType": "query",
							"dataType": "string",
							"required": false,
							"__note": "core show translation can show translation paths between formats, along with relative costs. so this could be just installed format, or we could follow that for transcoded formats."
						}
					]
				}
			]
		},
		{
			"path": "/sounds/{soundId}",
			"description": "Individual sound",
			"operations": [
				{
					"httpMethod": "GET",
					"summary": "Get a sound's details.",
					"nickname": "get",
					"responseClass": "Sound",
					"parameters": [
						{
							"name": "soundId",
							"description": "Sound's id",
							"paramType": "path",
							"required": true,
							"allowMultiple": false,
							"dataType": "string"
						}
					]
				}
			]
		}
	],
	"models": {
		"FormatLangPair": {
			"id": "FormatLangPair",
			"description": "Identifies the format and language of a sound file",
			"properties": {
				"language": {
					"required": true,
					"type": "string"
				},
				"format": {
					"required": true,
					"type": "string"
				}
			}
		},
		"Sound": {
			"id": "Sound",
			"description": "A media file that may be played back.",
			"properties": {
				"id": {
					"required": true,
					"description": "Sound's identifier.",
					"type": "string"
				},
				"text": {
					"required": false,
					"description": "Text description of the sound, usually the words spoken.",
					"type": "string"
				},
				"formats": {
					"required": true,
					"description": "The formats and languages in which this sound is available.",
					"type": "List[FormatLangPair]"
				}
			}
		}
	}
}