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/stasis",
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}, device_state:{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."
142 "description": "Details of a Stasis application",
146 "description": "Name of this application",
150 "type": "List[string]",
151 "description": "Id's for channels subscribed to.",
155 "type": "List[string]",
156 "description": "Id's for bridges subscribed to.",
160 "type": "List[string]",
161 "description": "{tech}/{resource} for endpoints subscribed to.",
165 "type": "List[string]",
166 "description": "Names of the devices subscribed to.",