mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	This patch updates the version of ARI to 1.7.0 to reflect the backwards
compatible changes that will be introduced in 13.4.0.
Change-Id: I6c36e6144da426412f25828a868e4df916bff60a
(cherry picked from commit 9d8a462356)
		
	
		
			
				
	
	
		
			100 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			100 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
| 	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
 | |
| 	"_author": "David M. Lee, II <dlee@digium.com>",
 | |
| 	"_svn_revision": "$Revision$",
 | |
| 	"apiVersion": "1.7.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]"
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 |