Update API versions and UPGRADE/CHANGES for 12.2.0
[asterisk/asterisk.git] / rest-api / api-docs / applications.json
index 182f1e0..c75d0c6 100644 (file)
@@ -2,7 +2,7 @@
        "_copyright": "Copyright (C) 2013, Digium, Inc.",
        "_author": "David M. Lee, II <dlee@digium.com>",
        "_svn_revision": "$Revision$",
-       "apiVersion": "0.0.1",
+       "apiVersion": "1.2.0",
        "swaggerVersion": "1.1",
        "basePath": "http://localhost:8088/stasis",
        "resourcePath": "/api-docs/applications.{format}",
@@ -14,7 +14,7 @@
                                {
                                        "httpMethod": "GET",
                                        "summary": "List all applications.",
-                                       "nickname": "getApplications",
+                                       "nickname": "list",
                                        "responseClass": "List[Application]"
                                }
                        ]
@@ -26,7 +26,7 @@
                                {
                                        "httpMethod": "GET",
                                        "summary": "Get details of an application.",
-                                       "nickname": "getApplication",
+                                       "nickname": "get",
                                        "responseClass": "Application",
                                        "parameters": [
                                                {
@@ -55,7 +55,7 @@
                                        "httpMethod": "POST",
                                        "summary": "Subscribe an application to a event source.",
                                        "notes": "Returns the state of the application after the subscriptions have changed",
-                                       "nickname": "applicationSubscribe",
+                                       "nickname": "subscribe",
                                        "responseClass": "Application",
                                        "parameters": [
                                                {
@@ -68,7 +68,7 @@
                                                },
                                                {
                                                        "name": "eventSource",
-                                                       "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}",
+                                                       "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}, deviceState:{deviceName}",
                                                        "paramType": "query",
                                                        "required": true,
                                                        "allowMultiple": true,
@@ -94,7 +94,7 @@
                                        "httpMethod": "DELETE",
                                        "summary": "Unsubscribe an application from an event source.",
                                        "notes": "Returns the state of the application after the subscriptions have changed",
-                                       "nickname": "applicationUnsubscribe",
+                                       "nickname": "unsubscribe",
                                        "responseClass": "Application",
                                        "parameters": [
                                                {
                                                },
                                                {
                                                        "name": "eventSource",
-                                                       "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}",
+                                                       "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}, deviceState:{deviceName}",
                                                        "paramType": "query",
                                                        "required": true,
                                                        "allowMultiple": true,
                                        "type": "List[string]",
                                        "description": "{tech}/{resource} for endpoints subscribed to.",
                                        "required": true
+                               },
+                               "device_names": {
+                                       "type": "List[string]",
+                                       "description": "Names of the devices subscribed to.",
+                                       "required": true
                                }
                        }
                }