[asterisk-commits] dlee: branch dlee/stasis-http r385011 - in /team/dlee/stasis-http/rest-api: ....

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 8 15:12:29 CDT 2013


Author: dlee
Date: Mon Apr  8 15:12:26 2013
New Revision: 385011

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385011
Log:
Coding guidelines: tabify

Modified:
    team/dlee/stasis-http/rest-api/api-docs/asterisk.json
    team/dlee/stasis-http/rest-api/api-docs/bridges.json
    team/dlee/stasis-http/rest-api/api-docs/channels.json
    team/dlee/stasis-http/rest-api/api-docs/endpoints.json
    team/dlee/stasis-http/rest-api/api-docs/events.json
    team/dlee/stasis-http/rest-api/api-docs/recordings.json
    team/dlee/stasis-http/rest-api/resources.json

Modified: team/dlee/stasis-http/rest-api/api-docs/asterisk.json
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/rest-api/api-docs/asterisk.json?view=diff&rev=385011&r1=385010&r2=385011
==============================================================================
--- team/dlee/stasis-http/rest-api/api-docs/asterisk.json (original)
+++ team/dlee/stasis-http/rest-api/api-docs/asterisk.json Mon Apr  8 15:12:26 2013
@@ -1,47 +1,47 @@
 {
-    "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
-    "_author": "David M. Lee, II <dlee at digium.com>",
-    "_svn_revision": "$Revision$",
-    "apiVersion": "0.0.1",
-    "swaggerVersion": "1.1",
-    "basePath": "http://localhost:8088/stasis",
-    "resourcePath": "/api-docs/asterisk.{format}",
-    "apis": [
-        {
-            "path": "/asterisk/info",
-            "description": "Asterisk system information (similar to core show settings)",
-            "operations": [
-                {
-                    "httpMethod": "GET",
-                    "summary": "Gets Asterisk system information",
-                    "nickname": "getAsteriskInfo",
-                    "responseClass": "AsteriskInfo",
-                    "parameters": [
-                        {
-                            "name": "only",
-                            "description": "Filter information returned",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": true,
-                            "dataType": "string",
-                            "allowableValues": {
-                                "valueType": "LIST",
-                                "values": [
-                                    "version",
-                                    "modules",
-                                    "uptime"
-                                ]
-                            }
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "models": {
-        "AsteriskInfo": {
-            "id": "AsteriskInfo",
-            "properties": {}
-        }
-    }
+	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
+	"_author": "David M. Lee, II <dlee at digium.com>",
+	"_svn_revision": "$Revision$",
+	"apiVersion": "0.0.1",
+	"swaggerVersion": "1.1",
+	"basePath": "http://localhost:8088/stasis",
+	"resourcePath": "/api-docs/asterisk.{format}",
+	"apis": [
+		{
+			"path": "/asterisk/info",
+			"description": "Asterisk system information (similar to core show settings)",
+			"operations": [
+				{
+					"httpMethod": "GET",
+					"summary": "Gets Asterisk system information",
+					"nickname": "getAsteriskInfo",
+					"responseClass": "AsteriskInfo",
+					"parameters": [
+						{
+							"name": "only",
+							"description": "Filter information returned",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": true,
+							"dataType": "string",
+							"allowableValues": {
+								"valueType": "LIST",
+								"values": [
+									"version",
+									"modules",
+									"uptime"
+								]
+							}
+						}
+					]
+				}
+			]
+		}
+	],
+	"models": {
+		"AsteriskInfo": {
+			"id": "AsteriskInfo",
+			"properties": {}
+		}
+	}
 }

Modified: team/dlee/stasis-http/rest-api/api-docs/bridges.json
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/rest-api/api-docs/bridges.json?view=diff&rev=385011&r1=385010&r2=385011
==============================================================================
--- team/dlee/stasis-http/rest-api/api-docs/bridges.json (original)
+++ team/dlee/stasis-http/rest-api/api-docs/bridges.json Mon Apr  8 15:12:26 2013
@@ -1,217 +1,217 @@
 {
-    "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
-    "_author": "David M. Lee, II <dlee at digium.com>",
-    "_svn_revision": "$Revision$",
-    "apiVersion": "0.0.1",
-    "swaggerVersion": "1.1",
-    "basePath": "http://localhost:8088/stasis",
-    "resourcePath": "/api-docs/bridges.{format}",
-    "apis": [
-        {
-            "path": "/bridges",
-            "description": "Active bridges",
-            "operations": [
-                {
-                    "httpMethod": "GET",
-                    "summary": "List active bridges",
-                    "nickname": "getBridges",
-                    "responseClass": "List[Bridge]"
-                },
-                {
-                    "httpMethod": "POST",
-                    "summary": "Create a new bridge",
-                    "nickname": "newBridge",
-                    "responseClass": "Bridge"
-                }
-             ]
-        },
-        {
-            "path": "/bridges/{bridgeId}",
-            "description": "Individual bridge",
-            "operations": [
-                {
-                    "httpMethod": "GET",
-                    "summary": "Get bridge details",
-                    "nickname": "getBridge",
-                    "responseClass": "Bridge",
-                    "parameters": [
-                        {
-                            "name": "bridgeId",
-                            "description": "Bridge's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                },
-                {
-                    "httpMethod": "DELETE",
-                    "summary": "Delete bridge",
-                    "nickname": "deleteBridge",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "bridgeId",
-                            "description": "Bridge's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/bridges/{bridgeId}/addChannel",
-            "description": "Add a channel to a bridge",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Add a channel to a bridge",
-                    "nickname": "addChannelToBridge",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "bridgeId",
-                            "description": "Bridge's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "channel",
-                            "description": "Channel's id",
-                            "paramType": "query",
-                            "required": true,
-                            "allowMultiple": true,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/bridges/{bridgeId}/removeChannel",
-            "description": "Remove a channel from a bridge",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Remove a channel from a bridge",
-                    "nickname": "removeChannelFromBridge",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "bridgeId",
-                            "description": "Bridge's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "channel",
-                            "description": "Channel's id",
-                            "paramType": "query",
-                            "required": true,
-                            "allowMultiple": true,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/bridges/{bridgeId}/record",
-            "description": "Record audio to/from a bridge",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Start a recording",
-                    "nickname": "recordBridge",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "bridgeId",
-                            "description": "Bridge's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "name",
-                            "description": "Recording's filename",
-                            "paramType": "query",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "maxDurationSeconds",
-                            "description": "Maximum duration of the recording, in seconds. 0 for no limit.",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "int",
-                            "defaultValue": 0
-                        },
-                        {
-                            "name": "maxSilenceSeconds",
-                            "description": "Maximum duration of silence, in seconds. 0 for no limit.",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "int",
-                            "defaultValue": 0
-                        },
-                        {
-                            "name": "append",
-                            "description": "If true, and recording already exists, append to recording.",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "boolean",
-                            "defaultValue": false
-                        },
-                        {
-                            "name": "beep",
-                            "description": "Play beep when recording begins",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "boolean",
-                            "defaultValue": false
-                        },
-                        {
-                            "name": "terminateOn",
-                            "description": "DTMF input to terminate recording.",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string",
-                            "defaultValue": "none",
-                            "allowableValues": {
-                                "valueType": "LIST",
-                                "values": [
-                                    "none",
-                                    "any",
-                                    "*",
-                                    "#"
-                                ]
-                            }
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "models": {
-        "Bridge": {
-            "id": "Bridge",
-            "properties": {}
-        }
-    }
+	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
+	"_author": "David M. Lee, II <dlee at digium.com>",
+	"_svn_revision": "$Revision$",
+	"apiVersion": "0.0.1",
+	"swaggerVersion": "1.1",
+	"basePath": "http://localhost:8088/stasis",
+	"resourcePath": "/api-docs/bridges.{format}",
+	"apis": [
+		{
+			"path": "/bridges",
+			"description": "Active bridges",
+			"operations": [
+				{
+					"httpMethod": "GET",
+					"summary": "List active bridges",
+					"nickname": "getBridges",
+					"responseClass": "List[Bridge]"
+				},
+				{
+					"httpMethod": "POST",
+					"summary": "Create a new bridge",
+					"nickname": "newBridge",
+					"responseClass": "Bridge"
+				}
+			]
+		},
+		{
+			"path": "/bridges/{bridgeId}",
+			"description": "Individual bridge",
+			"operations": [
+				{
+					"httpMethod": "GET",
+					"summary": "Get bridge details",
+					"nickname": "getBridge",
+					"responseClass": "Bridge",
+					"parameters": [
+						{
+							"name": "bridgeId",
+							"description": "Bridge's id",
+							"paramType": "path",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						}
+					]
+				},
+				{
+					"httpMethod": "DELETE",
+					"summary": "Delete bridge",
+					"nickname": "deleteBridge",
+					"responseClass": "void",
+					"parameters": [
+						{
+							"name": "bridgeId",
+							"description": "Bridge's id",
+							"paramType": "path",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						}
+					]
+				}
+			]
+		},
+		{
+			"path": "/bridges/{bridgeId}/addChannel",
+			"description": "Add a channel to a bridge",
+			"operations": [
+				{
+					"httpMethod": "POST",
+					"summary": "Add a channel to a bridge",
+					"nickname": "addChannelToBridge",
+					"responseClass": "void",
+					"parameters": [
+						{
+							"name": "bridgeId",
+							"description": "Bridge's id",
+							"paramType": "path",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "channel",
+							"description": "Channel's id",
+							"paramType": "query",
+							"required": true,
+							"allowMultiple": true,
+							"dataType": "string"
+						}
+					]
+				}
+			]
+		},
+		{
+			"path": "/bridges/{bridgeId}/removeChannel",
+			"description": "Remove a channel from a bridge",
+			"operations": [
+				{
+					"httpMethod": "POST",
+					"summary": "Remove a channel from a bridge",
+					"nickname": "removeChannelFromBridge",
+					"responseClass": "void",
+					"parameters": [
+						{
+							"name": "bridgeId",
+							"description": "Bridge's id",
+							"paramType": "path",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "channel",
+							"description": "Channel's id",
+							"paramType": "query",
+							"required": true,
+							"allowMultiple": true,
+							"dataType": "string"
+						}
+					]
+				}
+			]
+		},
+		{
+			"path": "/bridges/{bridgeId}/record",
+			"description": "Record audio to/from a bridge",
+			"operations": [
+				{
+					"httpMethod": "POST",
+					"summary": "Start a recording",
+					"nickname": "recordBridge",
+					"responseClass": "void",
+					"parameters": [
+						{
+							"name": "bridgeId",
+							"description": "Bridge's id",
+							"paramType": "path",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "name",
+							"description": "Recording's filename",
+							"paramType": "query",
+							"required": true,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "maxDurationSeconds",
+							"description": "Maximum duration of the recording, in seconds. 0 for no limit.",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "int",
+							"defaultValue": 0
+						},
+						{
+							"name": "maxSilenceSeconds",
+							"description": "Maximum duration of silence, in seconds. 0 for no limit.",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "int",
+							"defaultValue": 0
+						},
+						{
+							"name": "append",
+							"description": "If true, and recording already exists, append to recording.",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "boolean",
+							"defaultValue": false
+						},
+						{
+							"name": "beep",
+							"description": "Play beep when recording begins",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "boolean",
+							"defaultValue": false
+						},
+						{
+							"name": "terminateOn",
+							"description": "DTMF input to terminate recording.",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "string",
+							"defaultValue": "none",
+							"allowableValues": {
+								"valueType": "LIST",
+								"values": [
+									"none",
+									"any",
+									"*",
+									"#"
+								]
+							}
+						}
+					]
+				}
+			]
+		}
+	],
+	"models": {
+		"Bridge": {
+			"id": "Bridge",
+			"properties": {}
+		}
+	}
 }

Modified: team/dlee/stasis-http/rest-api/api-docs/channels.json
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/rest-api/api-docs/channels.json?view=diff&rev=385011&r1=385010&r2=385011
==============================================================================
--- team/dlee/stasis-http/rest-api/api-docs/channels.json (original)
+++ team/dlee/stasis-http/rest-api/api-docs/channels.json Mon Apr  8 15:12:26 2013
@@ -1,491 +1,491 @@
 {
-    "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
-    "_author": "David M. Lee, II <dlee at digium.com>",
-    "_svn_revision": "$Revision$",
-    "apiVersion": "0.0.1",
-    "swaggerVersion": "1.1",
-    "basePath": "http://localhost:8088/stasis",
-    "resourcePath": "/api-docs/channels.{format}",
-    "apis": [
-        {
-            "path": "/channels",
-            "description": "Active channels",
-            "operations": [
-                {
-                    "httpMethod": "GET",
-                    "summary": "List active channels",
-                    "nickname": "getChannels",
-                    "responseClass": "List[Channel]"
-                },
-                {
-                    "httpMethod": "POST",
-                    "summary": "Create a new channel (originate)",
-                    "nickname": "originate",
-                    "responseClass": "Originated",
-                    "parameters": [
-                        {
-                            "name": "endpoint",
-                            "description": "Endpoint to call. If not specified, originate is routed via dialplan",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "extension",
-                            "description": "Extension to dial",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "context",
-                            "description": "When routing via dialplan, the context use. If omitted, uses 'default'",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}",
-            "description": "Active channel",
-            "operations": [
-                {
-                    "httpMethod": "GET",
-                    "summary": "Channel details",
-                    "nickname": "getChannel",
-                    "responseClass": "Channel",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                },
-                {
-                    "httpMethod": "DELETE",
-                    "summary": "Delete (i.e. hangup) a channel",
-                    "nickname": "deleteChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/dial",
-            "description": "Create a new channel (originate) and bridge to this channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Create a new channel (originate) and bridge to this channel",
-                    "nickname": "dial",
-                    "responseClass": "Dialed",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "endpoint",
-                            "description": "Endpoint to call. If not specified, dial is routed via dialplan",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "extension",
-                            "description": "Extension to dial",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "context",
-                            "description": "When routing via dialplan, the context use. If omitted, uses 'default'",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/continue",
-            "description": "Exit application; continue execution in the dialplan",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Exit application; continue execution in the dialplan",
-                    "nickname": "continueInDialplan",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ],
-                    "errorResponses": [
-                        {
-                            "code": 404,
-                            "reason": "Channel not found"
-                        },
-                        {
-                            "code": 409,
-                            "reason": "Channel not in Stasis application"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/reject",
-            "description": "Reject a channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Reject a channel",
-                    "nickname": "rejectChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/answer",
-            "description": "Answer a channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Answer a channel",
-                    "nickname": "answerChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/mute",
-            "description": "Mute a channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Mute a channel",
-                    "nickname": "muteChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "direction",
-                            "description": "Direction in which to unmute audio",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string",
-                            "defaultValue": "both",
-                            "allowableValues": {
-                                "valueType": "LIST",
-                                "values": [
-                                    "both",
-                                    "in",
-                                    "out"
-                                ]
-                            }
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/unmute",
-            "description": "Unmute a channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Unmute a channel",
-                    "nickname": "unmuteChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "direction",
-                            "description": "Direction in which to unmute audio",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string",
-                            "defaultValue": "both",
-                            "allowableValues": {
-                                "valueType": "LIST",
-                                "values": [
-                                    "both",
-                                    "in",
-                                    "out"
-                                ]
-                            }
-                        }
-                    ]
-                }
-            ]
-        },
-        {
-            "path": "/channels/{channelId}/record",
-            "description": "Record audio to/from a channel",
-            "operations": [
-                {
-                    "httpMethod": "POST",
-                    "summary": "Start a recording",
-                    "nickname": "recordChannel",
-                    "responseClass": "void",
-                    "parameters": [
-                        {
-                            "name": "channelId",
-                            "description": "Channel's id",
-                            "paramType": "path",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "name",
-                            "description": "Recording's filename",
-                            "paramType": "query",
-                            "required": true,
-                            "allowMultiple": false,
-                            "dataType": "string"
-                        },
-                        {
-                            "name": "maxDurationSeconds",
-                            "description": "Maximum duration of the recording, in seconds. 0 for no limit",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "int",
-                            "defaultValue": 0
-                        },
-                        {
-                            "name": "maxSilenceSeconds",
-                            "description": "Maximum duration of silence, in seconds. 0 for no limit",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "int",
-                            "defaultValue": 0
-                        },
-                        {
-                            "name": "append",
-                            "description": "If true, and recording already exists, append to recording",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "boolean",
-                            "defaultValue": false
-                        },
-                        {
-                            "name": "beep",
-                            "description": "Play beep when recording begins",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "boolean",
-                            "defaultValue": false
-                        },
-                        {
-                            "name": "terminateOn",
-                            "description": "DTMF input to terminate recording",
-                            "paramType": "query",
-                            "required": false,
-                            "allowMultiple": false,
-                            "dataType": "string",
-                            "defaultValue": "none",
-                            "allowableValues": {
-                                "valueType": "LIST",
-                                "values": [
-                                    "none",
-                                    "any",
-                                    "*",
-                                    "#"
-                                ]
-                            }
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "models": {
-        "Originated": {
-            "id": "Originated",
-            "properties": {}
-        },
-        "Dialed": {
-            "id": "Dialed",
-            "properties": {}
-        },
-        "DialplanCEP": {
-            "id": "DialplanCEP",
-            "properties": {
-                "context": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Context in the dialplan"
-                },
-                "exten": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Extension in the dialplan"
-                },
-                "priority": {
-                    "required": true,
-                    "type": "long",
-                    "description": "Priority in the dialplan"
-                }
-            }
-        },
-        "CallerID": {
-            "id": "CallerID",
-            "properties": {
-                "name": {
-                    "required": true,
-                    "type": "string"
-                },
-                "number": {
-                    "required": true,
-                    "type": "string"
-                }
-            }
-        },
-        "Channel": {
-            "id": "Channel",
-            "properties": {
-                "uniqueid": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Unique identifier of the channel"
-                },
-                "name": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Name of the channel (i.e. SIP/foo-0000a7e3)"
-                },
-                "state": {
-                    "required": true,
-                    "type": "string"
-                },
-                "accountcode": {
-                    "required": true,
-                    "type": "string"
-                },
-                "peeraccount": {
-                    "required": true,
-                    "type": "string"
-                },
-                "userfield": {
-                    "required": true,
-                    "type": "string"
-                },
-                "linkedid": {
-                    "required": true,
-                    "type": "string"
-                },
-                "parkinglot": {
-                    "required": true,
-                    "type": "string"
-                },
-                "hangupsource": {
-                    "required": true,
-                    "type": "string"
-                },
-                "appl": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Currently executing dialplan application"
-                },
-                "data": {
-                    "required": true,
-                    "type": "string",
-                    "description": "Arguments passed to appl"
-                },
-                "dialplan": {
-                    "required": true,
-                    "type": "DialplanCEP",
-                    "description": "Current location in the dialplan"
-                },
-                "caller": {
-                    "required": true,
-                    "type": "CallerID"
-                },
-                "connected": {
-                    "required": true,
-                    "type": "CallerID"
-                },
-                "creationtime": {
-                    "required": true,
-                    "type": "Date",
-                    "description": "Timestamp when channel was created"
-                }
-            }
-        }
-    }
+	"_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
+	"_author": "David M. Lee, II <dlee at digium.com>",
+	"_svn_revision": "$Revision$",
+	"apiVersion": "0.0.1",
+	"swaggerVersion": "1.1",
+	"basePath": "http://localhost:8088/stasis",
+	"resourcePath": "/api-docs/channels.{format}",
+	"apis": [
+		{
+			"path": "/channels",
+			"description": "Active channels",
+			"operations": [
+				{
+					"httpMethod": "GET",
+					"summary": "List active channels",
+					"nickname": "getChannels",
+					"responseClass": "List[Channel]"
+				},
+				{
+					"httpMethod": "POST",
+					"summary": "Create a new channel (originate)",
+					"nickname": "originate",
+					"responseClass": "Originated",
+					"parameters": [
+						{
+							"name": "endpoint",
+							"description": "Endpoint to call. If not specified, originate is routed via dialplan",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "extension",
+							"description": "Extension to dial",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "string"
+						},
+						{
+							"name": "context",
+							"description": "When routing via dialplan, the context use. If omitted, uses 'default'",
+							"paramType": "query",
+							"required": false,
+							"allowMultiple": false,
+							"dataType": "string"
+						}
+					]
+				}
+			]
+		},
+		{

[... 1180 lines stripped ...]



More information about the asterisk-commits mailing list