2 "_copyright": "Copyright (C) 2013, Digium, Inc.",
3 "_author": "David M. Lee, II <dlee@digium.com>",
4 "_svn_revision": "$Revision$",
6 "swaggerVersion": "1.1",
7 "basePath": "http://localhost:8088/ari",
8 "resourcePath": "/api-docs/applications.{format}",
11 "path": "/applications",
12 "description": "Stasis applications",
16 "summary": "List all applications.",
18 "responseClass": "List[Application]"
23 "path": "/applications/{applicationName}",
24 "description": "Stasis application",
28 "summary": "Get details of an application.",
30 "responseClass": "Application",
33 "name": "applicationName",
34 "description": "Application's name",
37 "allowMultiple": false,
44 "reason": "Application does not exist."
51 "path": "/applications/{applicationName}/subscription",
52 "description": "Stasis application",
56 "summary": "Subscribe an application to a event source.",
57 "notes": "Returns the state of the application after the subscriptions have changed",
58 "nickname": "subscribe",
59 "responseClass": "Application",
62 "name": "applicationName",
63 "description": "Application's name",
66 "allowMultiple": false,
70 "name": "eventSource",
71 "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}",
74 "allowMultiple": true,
81 "reason": "Missing parameter."
85 "reason": "Application does not exist."
89 "reason": "Event source does not exist."
94 "httpMethod": "DELETE",
95 "summary": "Unsubscribe an application from an event source.",
96 "notes": "Returns the state of the application after the subscriptions have changed",
97 "nickname": "unsubscribe",
98 "responseClass": "Application",
101 "name": "applicationName",
102 "description": "Application's name",
105 "allowMultiple": false,
109 "name": "eventSource",
110 "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}",
111 "paramType": "query",
113 "allowMultiple": true,
120 "reason": "Missing parameter; event source scheme not recognized."
124 "reason": "Application does not exist."
128 "reason": "Application not subscribed to event source."
132 "reason": "Event source does not exist."
139 "path": "/applications/{applicationName}/eventFilter",
140 "description": "Stasis application",
144 "summary": "Filter application events types.",
145 "notes": "Allowed and/or disallowed event type filtering can be done. The body (parameter) should specify a JSON key/value object that describes the type of event filtering needed. One, or both of the following keys can be designated:<br /><br />\"allowed\" - Specifies an allowed list of event types<br />\"disallowed\" - Specifies a disallowed list of event types<br /><br />Further, each of those key's value should be a JSON array that holds zero, or more JSON key/value objects. Each of these objects must contain the following key with an associated value:<br /><br />\"type\" - The type name of the event to filter<br /><br />The value must be the string name (case sensitive) of the event type that needs filtering. For example:<br /><br />{ \"allowed\": [ { \"type\": \"StasisStart\" }, { \"type\": \"StasisEnd\" } ] }<br /><br />As this specifies only an allowed list, then only those two event type messages are sent to the application. No other event messages are sent.<br /><br />The following rules apply:<br /><br />* If the body is empty, both the allowed and disallowed filters are set empty.<br />* If both list types are given then both are set to their respective values (note, specifying an empty array for a given type sets that type to empty).<br />* If only one list type is given then only that type is set. The other type is not updated.<br />* An empty \"allowed\" list means all events are allowed.<br />* An empty \"disallowed\" list means no events are disallowed.<br />* Disallowed events take precedence over allowed events if the event type is specified in both lists.",
146 "nickname": "filter",
147 "responseClass": "Application",
150 "name": "applicationName",
151 "description": "Application's name",
154 "allowMultiple": false,
159 "description": "Specify which event types to allow/disallow",
162 "dataType": "object",
163 "allowMultiple": false
169 "reason": "Bad request."
173 "reason": "Application does not exist."
183 "description": "Details of a Stasis application",
187 "description": "Name of this application",
191 "type": "List[string]",
192 "description": "Id's for channels subscribed to.",
196 "type": "List[string]",
197 "description": "Id's for bridges subscribed to.",
201 "type": "List[string]",
202 "description": "{tech}/{resource} for endpoints subscribed to.",
206 "type": "List[string]",
207 "description": "Names of the devices subscribed to.",
211 "type": "List[object]",
212 "description": "Event types sent to the application.",
215 "events_disallowed": {
216 "type": "List[object]",
217 "description": "Event types not sent to the application.",