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
|
{
"_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/sounds.{format}",
"apis": [
{
"path": "/sounds",
"description": "Sounds",
"operations": [
{
"httpMethod": "GET",
"summary": "List all sounds.",
"nickname": "getSounds",
"responseClass": "List[Sound]",
"parameters": [
{
"name": "lang",
"paramType": "query",
"dataType": "string",
"required": false
},
{
"name": "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": "getStoredSound",
"responseClass": "Sound",
"parameters": [
{
"name": "soundId",
"description": "Sound's id",
"paramType": "path",
"required": true,
"allowMultiple": false,
"dataType": "string"
}
]
}
]
}
],
"models": {
"Sound": {
"id": "Sound",
"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"
},
"lang": {
"required": true,
"type": "string"
},
"formats": {
"required": true,
"type": "List[string]"
}
}
}
}
}
|