2013-04-22 14:58:53 +00:00
{
"_copyright" : "Copyright (C) 2012 - 2013, Digium, Inc." ,
"_author" : "David M. Lee, II <dlee@digium.com>" ,
"_svn_revision" : "$Revision$" ,
2015-05-21 13:05:08 -05:00
"apiVersion" : "1.7.0" ,
2013-04-22 14:58:53 +00:00
"swaggerVersion" : "1.1" ,
2014-09-20 23:41:17 +00:00
"basePath" : "http://localhost:8088/ari" ,
2013-04-22 14:58:53 +00:00
"resourcePath" : "/api-docs/sounds.{format}" ,
"apis" : [
{
"path" : "/sounds" ,
"description" : "Sounds" ,
"operations" : [
{
"httpMethod" : "GET" ,
"summary" : "List all sounds." ,
2013-11-07 21:10:31 +00:00
"nickname" : "list" ,
2013-04-22 14:58:53 +00:00
"responseClass" : "List[Sound]" ,
"parameters" : [
{
"name" : "lang" ,
2013-08-02 14:36:32 +00:00
"description" : "Lookup sound for a specific language." ,
2013-04-22 14:58:53 +00:00
"paramType" : "query" ,
"dataType" : "string" ,
"required" : false
} ,
{
"name" : "format" ,
2013-08-02 14:36:32 +00:00
"description" : "Lookup sound in a specific format." ,
2013-04-22 14:58:53 +00:00
"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." ,
2013-11-07 21:10:31 +00:00
"nickname" : "get" ,
2013-04-22 14:58:53 +00:00
"responseClass" : "Sound" ,
"parameters" : [
{
"name" : "soundId" ,
"description" : "Sound's id" ,
"paramType" : "path" ,
"required" : true ,
"allowMultiple" : false ,
"dataType" : "string"
}
]
}
]
}
] ,
"models" : {
2013-06-24 13:49:20 +00:00
"FormatLangPair" : {
"id" : "FormatLangPair" ,
2013-07-03 16:32:41 +00:00
"description" : "Identifies the format and language of a sound file" ,
2013-06-24 13:49:20 +00:00
"properties" : {
"language" : {
"required" : true ,
"type" : "string"
} ,
"format" : {
"required" : true ,
"type" : "string"
}
}
} ,
2013-04-22 14:58:53 +00:00
"Sound" : {
"id" : "Sound" ,
2013-07-03 16:32:41 +00:00
"description" : "A media file that may be played back." ,
2013-04-22 14:58:53 +00:00
"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 ,
2013-06-24 13:49:20 +00:00
"description" : "The formats and languages in which this sound is available." ,
"type" : "List[FormatLangPair]"
2013-04-22 14:58:53 +00:00
}
}
}
}
}