Debian Codegraph @

rest-api/api-docs/sounds.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/sounds.{format}",
9 "since": [
10 "12.0.0"
11 ],
12 "apis": [
13 {
14 "path": "/sounds",
15 "description": "Sounds",
16 "operations": [
17 {
18 "httpMethod": "GET",
19 "since": [
20 "12.0.0"
21 ],
22 "summary": "List all sounds.",
23 "nickname": "list",
24 "responseClass": "List[Sound]",
25 "parameters": [
26 {
27 "name": "lang",
28 "description": "Lookup sound for a specific language.",
29 "paramType": "query",
30 "dataType": "string",
31 "required": false
32 },
33 {
34 "name": "format",
35 "description": "Lookup sound in a specific format.",
36 "paramType": "query",
37 "dataType": "string",
38 "required": false,
39 "__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."
40 }
41 ]
42 }
43 ]
44 },
45 {
46 "path": "/sounds/{soundId}",
47 "description": "Individual sound",
48 "operations": [
49 {
50 "httpMethod": "GET",
51 "since": [
52 "12.0.0"
53 ],
54 "summary": "Get a sound's details.",
55 "nickname": "get",
56 "responseClass": "Sound",
57 "parameters": [
58 {
59 "name": "soundId",
60 "description": "Sound's id",
61 "paramType": "path",
62 "required": true,
63 "allowMultiple": false,
64 "dataType": "string"
65 }
66 ]
67 }
68 ]
69 }
70 ],
71 "models": {
72 "FormatLangPair": {
73 "id": "FormatLangPair",
74 "description": "Identifies the format and language of a sound file",
75 "properties": {
76 "language": {
77 "required": true,
78 "type": "string"
79 },
80 "format": {
81 "required": true,
82 "type": "string"
83 }
84 }
85 },
86 "Sound": {
87 "id": "Sound",
88 "description": "A media file that may be played back.",
89 "properties": {
90 "id": {
91 "required": true,
92 "description": "Sound's identifier.",
93 "type": "string"
94 },
95 "text": {
96 "required": false,
97 "description": "Text description of the sound, usually the words spoken.",
98 "type": "string"
99 },
100 "formats": {
101 "required": true,
102 "description": "The formats and languages in which this sound is available.",
103 "type": "List[FormatLangPair]"
104 }
105 }
106 }
107 }
108 }