Index installed sounds and implement ARI sounds queries
[asterisk/asterisk.git] / rest-api / api-docs / sounds.json
index 23d0225..06d84ea 100644 (file)
                }
        ],
        "models": {
+               "FormatLangPair": {
+                       "id": "FormatLangPair",
+                       "properties": {
+                               "language": {
+                                       "required": true,
+                                       "type": "string"
+                               },
+                               "format": {
+                                       "required": true,
+                                       "type": "string"
+                               }
+                       }
+               },
                "Sound": {
                        "id": "Sound",
                        "properties": {
                                        "description": "Text description of the sound, usually the words spoken.",
                                        "type": "string"
                                },
-                               "lang": {
-                                       "required": true,
-                                       "type": "string"
-                               },
                                "formats": {
                                        "required": true,
-                                       "type": "List[string]"
+                                       "description": "The formats and languages in which this sound is available.",
+                                       "type": "List[FormatLangPair]"
                                }
                        }
                }