123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Asterisk Project : Asterisk 13 Applications REST API</title>
- <link rel="stylesheet" href="styles/site.css" type="text/css" />
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body class="theme-default aui-theme-default">
- <div id="page">
- <div id="main" class="aui-page-panel">
- <div id="main-header">
- <div id="breadcrumb-section">
- <ol id="breadcrumbs">
- <li class="first">
- <span><a href="index.html">Asterisk Project</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-ARI_29394283.html">Asterisk 13 ARI</a></span>
- </li>
- </ol>
- </div>
- <h1 id="title-heading" class="pagetitle">
- <span id="title-text">
- Asterisk Project : Asterisk 13 Applications REST API
- </span>
- </h1>
- </div>
- <div id="content" class="view">
- <div class="page-metadata">
-
-
-
-
-
-
-
- Created by <span class='author'> wikibot</span> on Aug 08, 2014
- </div>
- <div id="main-content" class="wiki-content group">
- <h1 id="Asterisk13ApplicationsRESTAPI-Applications">Applications</h1>
- <div class="table-wrap"><table class="confluenceTable"><tbody>
- <tr>
- <th class="confluenceTh"><p> Method </p></th>
- <th class="confluenceTh"><p> Path </p></th>
- <th class="confluenceTh"><p> Return Model </p></th>
- <th class="confluenceTh"><p> Summary </p></th>
- </tr>
- <tr>
- <td class="confluenceTd"><p> GET </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-Applications-REST-API_29394318.html">/applications</a> </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Application">List[Application]</a> </p></td>
- <td class="confluenceTd"><p> List all applications. </p></td>
- </tr>
- <tr>
- <td class="confluenceTd"><p> GET </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-Applications-REST-API_29394318.html">/applications/{applicationName}</a> </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Application">Application</a> </p></td>
- <td class="confluenceTd"><p> Get details of an application. </p></td>
- </tr>
- <tr>
- <td class="confluenceTd"><p> POST </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-Applications-REST-API_29394318.html">/applications/{applicationName}/subscription</a> </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Application">Application</a> </p></td>
- <td class="confluenceTd"><p> Subscribe an application to a event source. </p></td>
- </tr>
- <tr>
- <td class="confluenceTd"><p> DELETE </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-Applications-REST-API_29394318.html">/applications/{applicationName}/subscription</a> </p></td>
- <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Application">Application</a> </p></td>
- <td class="confluenceTd"><p> Unsubscribe an application from an event source. </p></td>
- </tr>
- </tbody></table></div>
- <p><span class="confluence-anchor-link" id="Asterisk13ApplicationsRESTAPI-list"></span></p>
- <h2 id="Asterisk13ApplicationsRESTAPI-GET/applications">GET /applications</h2>
- <p>List all applications.</p>
- <p><span class="confluence-anchor-link" id="Asterisk13ApplicationsRESTAPI-get"></span></p>
- <h2 id="Asterisk13ApplicationsRESTAPI-GET/applications/{applicationName}">GET /applications/{applicationName}</h2>
- <p>Get details of an application.</p>
- <h3 id="Asterisk13ApplicationsRESTAPI-Pathparameters">Path parameters</h3>
- <ul>
- <li>applicationName: string - Application's name</li>
- </ul>
- <h3 id="Asterisk13ApplicationsRESTAPI-ErrorResponses">Error Responses</h3>
- <ul>
- <li>404 - Application does not exist.</li>
- </ul>
- <p><span class="confluence-anchor-link" id="Asterisk13ApplicationsRESTAPI-subscribe"></span></p>
- <h2 id="Asterisk13ApplicationsRESTAPI-POST/applications/{applicationName}/subscription">POST /applications/{applicationName}/subscription</h2>
- <p>Subscribe an application to a event source. Returns the state of the application after the subscriptions have changed</p>
- <h3 id="Asterisk13ApplicationsRESTAPI-Pathparameters.1">Path parameters</h3>
- <ul>
- <li>applicationName: string - Application's name</li>
- </ul>
- <h3 id="Asterisk13ApplicationsRESTAPI-Queryparameters">Query parameters</h3>
- <ul>
- <li>eventSource: string - <strong>(required)</strong> URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}
- <ul>
- <li>Allows comma separated values.</li>
- </ul>
- </li>
- </ul>
- <h3 id="Asterisk13ApplicationsRESTAPI-ErrorResponses.1">Error Responses</h3>
- <ul>
- <li>400 - Missing parameter.</li>
- <li>404 - Application does not exist.</li>
- <li>422 - Event source does not exist.</li>
- </ul>
- <p><span class="confluence-anchor-link" id="Asterisk13ApplicationsRESTAPI-unsubscribe"></span></p>
- <h2 id="Asterisk13ApplicationsRESTAPI-DELETE/applications/{applicationName}/subscription">DELETE /applications/{applicationName}/subscription</h2>
- <p>Unsubscribe an application from an event source. Returns the state of the application after the subscriptions have changed</p>
- <h3 id="Asterisk13ApplicationsRESTAPI-Pathparameters.2">Path parameters</h3>
- <ul>
- <li>applicationName: string - Application's name</li>
- </ul>
- <h3 id="Asterisk13ApplicationsRESTAPI-Queryparameters.1">Query parameters</h3>
- <ul>
- <li>eventSource: string - <strong>(required)</strong> URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}[/{resource}], deviceState:{deviceName}
- <ul>
- <li>Allows comma separated values.</li>
- </ul>
- </li>
- </ul>
- <h3 id="Asterisk13ApplicationsRESTAPI-ErrorResponses.2">Error Responses</h3>
- <ul>
- <li>400 - Missing parameter; event source scheme not recognized.</li>
- <li>404 - Application does not exist.</li>
- <li>409 - Application not subscribed to event source.</li>
- <li>422 - Event source does not exist.</li>
- </ul>
- </div>
-
-
- </div> </div>
- <div id="footer">
- <section class="footer-body">
- <p>Document generated by Confluence on Aug 11, 2014 13:40</p>
- </section>
- </div>
- </div> </body>
- </html>
|