Asterisk-13-Endpoints-REST-API_29394323.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Endpoints REST API</title>
  5. <link rel="stylesheet" href="styles/site.css" type="text/css" />
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. </head>
  8. <body class="theme-default aui-theme-default">
  9. <div id="page">
  10. <div id="main" class="aui-page-panel">
  11. <div id="main-header">
  12. <div id="breadcrumb-section">
  13. <ol id="breadcrumbs">
  14. <li class="first">
  15. <span><a href="index.html">Asterisk Project</a></span>
  16. </li>
  17. <li>
  18. <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
  19. </li>
  20. <li>
  21. <span><a href="Asterisk-13-ARI_29394283.html">Asterisk 13 ARI</a></span>
  22. </li>
  23. </ol>
  24. </div>
  25. <h1 id="title-heading" class="pagetitle">
  26. <span id="title-text">
  27. Asterisk Project : Asterisk 13 Endpoints REST API
  28. </span>
  29. </h1>
  30. </div>
  31. <div id="content" class="view">
  32. <div class="page-metadata">
  33. Created by <span class='author'> wikibot</span> on Aug 08, 2014
  34. </div>
  35. <div id="main-content" class="wiki-content group">
  36. <h1 id="Asterisk13EndpointsRESTAPI-Endpoints">Endpoints</h1>
  37. <div class="table-wrap"><table class="confluenceTable"><tbody>
  38. <tr>
  39. <th class="confluenceTh"><p> Method </p></th>
  40. <th class="confluenceTh"><p> Path </p></th>
  41. <th class="confluenceTh"><p> Return Model </p></th>
  42. <th class="confluenceTh"><p> Summary </p></th>
  43. </tr>
  44. <tr>
  45. <td class="confluenceTd"><p> GET </p></td>
  46. <td class="confluenceTd"><p> <a href="Asterisk-13-Endpoints-REST-API_29394323.html">/endpoints</a> </p></td>
  47. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Endpoint">List[Endpoint]</a> </p></td>
  48. <td class="confluenceTd"><p> List all endpoints. </p></td>
  49. </tr>
  50. <tr>
  51. <td class="confluenceTd"><p> PUT </p></td>
  52. <td class="confluenceTd"><p> <a href="Asterisk-13-Endpoints-REST-API_29394323.html">/endpoints/sendMessage</a> </p></td>
  53. <td class="confluenceTd"><p> void </p></td>
  54. <td class="confluenceTd"><p> Send a message to some technology URI or endpoint. </p></td>
  55. </tr>
  56. <tr>
  57. <td class="confluenceTd"><p> GET </p></td>
  58. <td class="confluenceTd"><p> <a href="Asterisk-13-Endpoints-REST-API_29394323.html">/endpoints/{tech}</a> </p></td>
  59. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Endpoint">List[Endpoint]</a> </p></td>
  60. <td class="confluenceTd"><p> List available endoints for a given endpoint technology. </p></td>
  61. </tr>
  62. <tr>
  63. <td class="confluenceTd"><p> GET </p></td>
  64. <td class="confluenceTd"><p> <a href="Asterisk-13-Endpoints-REST-API_29394323.html">/endpoints/{tech}/{resource}</a> </p></td>
  65. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-Endpoint">Endpoint</a> </p></td>
  66. <td class="confluenceTd"><p> Details for an endpoint. </p></td>
  67. </tr>
  68. <tr>
  69. <td class="confluenceTd"><p> PUT </p></td>
  70. <td class="confluenceTd"><p> <a href="Asterisk-13-Endpoints-REST-API_29394323.html">/endpoints/{tech}/{resource}/sendMessage</a> </p></td>
  71. <td class="confluenceTd"><p> void </p></td>
  72. <td class="confluenceTd"><p> Send a message to some endpoint in a technology. </p></td>
  73. </tr>
  74. </tbody></table></div>
  75. <p><span class="confluence-anchor-link" id="Asterisk13EndpointsRESTAPI-list"></span></p>
  76. <h2 id="Asterisk13EndpointsRESTAPI-GET/endpoints">GET /endpoints</h2>
  77. <p>List all endpoints.</p>
  78. <p><span class="confluence-anchor-link" id="Asterisk13EndpointsRESTAPI-sendMessage"></span></p>
  79. <h2 id="Asterisk13EndpointsRESTAPI-PUT/endpoints/sendMessage">PUT /endpoints/sendMessage</h2>
  80. <p>Send a message to some technology URI or endpoint.</p>
  81. <h3 id="Asterisk13EndpointsRESTAPI-Queryparameters">Query parameters</h3>
  82. <ul>
  83. <li>to: string - <strong>(required)</strong> The endpoint resource or technology specific URI to send the message to. Valid resources are sip, pjsip, and xmpp.</li>
  84. <li>from: string - <strong>(required)</strong> The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.</li>
  85. <li>body: string - The body of the message</li>
  86. </ul>
  87. <h3 id="Asterisk13EndpointsRESTAPI-Bodyparameter">Body parameter</h3>
  88. <ul>
  89. <li>variables: containers -</li>
  90. </ul>
  91. <h3 id="Asterisk13EndpointsRESTAPI-ErrorResponses">Error Responses</h3>
  92. <ul>
  93. <li>404 - Endpoint not found</li>
  94. </ul>
  95. <p><span class="confluence-anchor-link" id="Asterisk13EndpointsRESTAPI-listByTech"></span></p>
  96. <h2 id="Asterisk13EndpointsRESTAPI-GET/endpoints/{tech}">GET /endpoints/{tech}</h2>
  97. <p>List available endoints for a given endpoint technology.</p>
  98. <h3 id="Asterisk13EndpointsRESTAPI-Pathparameters">Path parameters</h3>
  99. <ul>
  100. <li>tech: string - Technology of the endpoints (sip,iax2,...)</li>
  101. </ul>
  102. <h3 id="Asterisk13EndpointsRESTAPI-ErrorResponses.1">Error Responses</h3>
  103. <ul>
  104. <li>404 - Endpoints not found</li>
  105. </ul>
  106. <p><span class="confluence-anchor-link" id="Asterisk13EndpointsRESTAPI-get"></span></p>
  107. <h2 id="Asterisk13EndpointsRESTAPI-GET/endpoints/{tech}/{resource}">GET /endpoints/{tech}/{resource}</h2>
  108. <p>Details for an endpoint.</p>
  109. <h3 id="Asterisk13EndpointsRESTAPI-Pathparameters.1">Path parameters</h3>
  110. <ul>
  111. <li>tech: string - Technology of the endpoint</li>
  112. <li>resource: string - ID of the endpoint</li>
  113. </ul>
  114. <h3 id="Asterisk13EndpointsRESTAPI-ErrorResponses.2">Error Responses</h3>
  115. <ul>
  116. <li>400 - Invalid parameters for sending a message.</li>
  117. <li>404 - Endpoints not found</li>
  118. </ul>
  119. <p><span class="confluence-anchor-link" id="Asterisk13EndpointsRESTAPI-sendMessageToEndpoint"></span></p>
  120. <h2 id="Asterisk13EndpointsRESTAPI-PUT/endpoints/{tech}/{resource}/sendMessage">PUT /endpoints/{tech}/{resource}/sendMessage</h2>
  121. <p>Send a message to some endpoint in a technology.</p>
  122. <h3 id="Asterisk13EndpointsRESTAPI-Pathparameters.2">Path parameters</h3>
  123. <ul>
  124. <li>tech: string - Technology of the endpoint</li>
  125. <li>resource: string - ID of the endpoint</li>
  126. </ul>
  127. <h3 id="Asterisk13EndpointsRESTAPI-Queryparameters.1">Query parameters</h3>
  128. <ul>
  129. <li>from: string - <strong>(required)</strong> The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.</li>
  130. <li>body: string - The body of the message</li>
  131. </ul>
  132. <h3 id="Asterisk13EndpointsRESTAPI-Bodyparameter.1">Body parameter</h3>
  133. <ul>
  134. <li>variables: containers -</li>
  135. </ul>
  136. <h3 id="Asterisk13EndpointsRESTAPI-ErrorResponses.3">Error Responses</h3>
  137. <ul>
  138. <li>400 - Invalid parameters for sending a message.</li>
  139. <li>404 - Endpoint not found</li>
  140. </ul>
  141. </div>
  142. </div> </div>
  143. <div id="footer">
  144. <section class="footer-body">
  145. <p>Document generated by Confluence on Aug 11, 2014 13:41</p>
  146. </section>
  147. </div>
  148. </div> </body>
  149. </html>