Commits

Chun-Ping Chang committed 7aa1b0e

fix send message multiple doc quote

Comments (0)

Files changed (3)

         </table>
       </div>
 
+      <hr>
+
+      <div class="hero-unit" id="restapi">
+        <h2>Libraries</h2>
+        <hr/>
+        <ol>
+          <li>
+            <a href="#js">JavaScript</a>
+          </li>
+          <li>
+            <a href="#python">Python</a>
+          </li>
+        </ol>
+      </div>
 
     <hr>
 
 
     <script src="/assets/js/custom/apidoc.js"></script>
 
-    <script type="text/javascript" charset="utf-8">
-      $(document).ready( function () {
-      $('.accordion-body').collapse('hide');
-      });
-    </script>
-
   </body>
 </html>

docs/lib/js/publish_pos.html

+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+  <head>
+    <title>Publish Pos - REST API - Documentation - GaiaSup</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
+    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
+    <meta name="author" content="Imonology LLC">
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+    <!-- styles -->
+    <link href="../../assets/css/bs_united.css" rel="stylesheet">
+    <style type="text/css">
+      body {
+        padding-top: 60px;
+        padding-bottom: 40px;
+      }
+    </style>
+    <link href="../../assets/css/bootstrap-responsive.css" rel="stylesheet">
+    <link href="../../assets/css/prettify.css" rel="stylesheet">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- fav and touch icons -->
+    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
+  </head>
+
+  <body onload="prettyPrint()">
+
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+        <div class="container">
+          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </a>
+          <a class="brand" href="/">GaiaSup</a>
+          <div class="nav-collapse">
+            <ul class="nav">
+              <li><a href="/">Home</a></li>
+              <li><a href="/pricing">Pricing</a></li>
+              <li><a href="/manage">Manage</a></li>
+              <li class="active"><a href="/doc/api">Documentation</a></li>
+              <li><a data-toggle="modal" href="#contact">Contact us</a></li>
+              <!--<li><a href="/contact">Contact us</a></li>-->
+            </ul>
+
+            <!-- The drop down menu -->
+            <ul class="nav pull-right">
+              <li><a href="/login">Log In / Sign Up</a></li>
+              <!--<li class="divider-vertical"></li>-->
+              <!--<li class="drop down">-->
+              <!--<a class="dropdown-toggle" href="#" data-toggle="dropdown">Log In <strong class="caret"></strong></a>-->
+              <!--<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">-->
+                <!--<form id="frmLogin">-->
+                  <!--<input id="txtUserID" style="margin-bottom: 15px;" type="text" name="txtUserID" size="30" />-->
+                  <!--<input id="txtUserPW" style="margin-bottom: 15px;" type="password" name="txtUserPW" size="30" />-->
+
+                  <!--<input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="button" id="btnLogin" name="btnLogin" value="Log In" />-->
+                <!--</form>-->
+              <!--</div>-->
+              <!--</li>-->
+            </ul>
+          </div>
+          <!--/.nav-collapse -->
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+      <ul class="breadcrumb">
+        <li><a href="/doc/api">Documentation</a> <span class="divider">→</span></li>
+        <li><a href="/doc/api">REST API</a> <span class="divider">→</span></li>
+        <li><a href="/doc/api#pos">Position</a> <span class="divider">→</span></li>
+        <li class="active">Publish Pos</li>
+      </ul>
+      <div class="hero-unit">
+        <h2>Publish Pos</h2>
+        <em>Publish self position for other Nodes to see.</em>
+        <div>
+          <br/>
+          <strong>Resource URL: </strong>
+          <pre><strong>http://api.gaiasup.com/publish/pos/</strong><em>:x/:y/:z</em></pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:x</div>
+              </td>
+              <td>
+                <div>
+                  Current position. The value of x / longitude.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>11</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:y</div>
+              </td>
+              <td>
+                <div>
+                  Current position. The value of y / latitude.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>22</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:z</div>
+              </td>
+              <td>
+                <div>
+                  Current position. The value of z / altitude / hieght.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>33</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Optional Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>x1</div>
+              </td>
+              <td>
+                <div>
+                  The 'From' position's x value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>12</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>y1</div>
+              </td>
+              <td>
+                <div>
+                  The 'From' position's y value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>34</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>z1</div>
+              </td>
+              <td>
+                <div>
+                  The 'From' position's z value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>56</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>x2</div>
+              </td>
+              <td>
+                <div>
+                  The 'To' position's x value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>65</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>y2</div>
+              </td>
+              <td>
+                <div>
+                  The 'To' position's y value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>43</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>z2</div>
+              </td>
+              <td>
+                <div>
+                  The 'To' position's z value.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>21</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>speed</div>
+              </td>
+              <td>
+                <div>
+                  Current speed.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>333</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>orient</div>
+              </td>
+              <td>
+                <div>
+                  The orientation of the current Node.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>444</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>elevation</div>
+              </td>
+              <td>
+                <div>
+                  The elevation of the current Node.
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>555</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+
+        <div>
+          <br/>
+          <strong>Example Request -- </strong>
+          <span class="label label-info">POST</span>
+          <br/> <br/>
+          <pre><strong>http://api.gaiasup.com/publish/pos/</strong><em>11/22/33</em></pre>
+          <br/>
+          <strong>POST Format</strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums language-js">
+{
+  "orien": [orient, elevation],
+  "move":
+  [
+    [x1, y1, z1, x2, y2, z2], speed
+  ]
+}
+          </pre>
+          <br/>
+        </div>
+        <div>
+          <strong>POST Data</strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums language-js">
+{
+  "orien": ["78", "87"],
+  "move":
+  [
+    ["55","55","55","123","34","56"], "77"
+  ]
+}
+          </pre>
+          <br/>
+        </div>
+        <strong>Return Result</strong>
+        <br/> <br/>
+        <pre class="prettyprint linenums language-js">
+["OK", []]
+        </pre>
+      </div>
+
+
+    <hr>
+
+    <footer>
+    <center>
+      <p>&copy; 2010-2012, <a href="http://imonology.com/" target="_blank">Imonology, LLC</a>. All rights reserved.</p>
+    </center>
+    </footer>
+
+    </div>
+    <!-- /container -->
+
+    <!-- Modals -->
+    <div class="modal hide fade" id="contact">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3>Contact us</h3>
+      </div>
+      <div class="modal-body">
+        <p>You can send feedback or report bug to <a href="mailto:contact@GaiaSup.com">contact@GaiaSup.com</a></p>
+      </div>
+      <div class="modal-footer">
+        <a data-dismiss="modal" href="#" class="btn btn-primary" id="ContactUsClose">Close</a>
+      </div>
+    </div>
+
+    <!-- Le javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <script src="../../assets/js/jquery.js"></script>
+    <script src="../../assets/js/bootstrap-transition.js"></script>
+    <script src="../../assets/js/bootstrap-alert.js"></script>
+    <script src="../../assets/js/bootstrap-modal.js"></script>
+    <script src="../../assets/js/bootstrap-dropdown.js"></script>
+    <script src="../../assets/js/bootstrap-scrollspy.js"></script>
+    <script src="../../assets/js/bootstrap-tab.js"></script>
+    <script src="../../assets/js/bootstrap-tooltip.js"></script>
+    <script src="../../assets/js/bootstrap-popover.js"></script>
+    <script src="../../assets/js/bootstrap-button.js"></script>
+    <script src="../../assets/js/bootstrap-collapse.js"></script>
+    <script src="../../assets/js/bootstrap-carousel.js"></script>
+    <script src="../../assets/js/bootstrap-typeahead.js"></script>
+
+    <script src="../../assets/js/prettify.js"></script>
+
+    <script type="text/javascript" charset="utf-8">
+      $(document).ready( function () {
+      $('.accordion-body').collapse('hide');
+      });
+    </script>
+
+  </body>
+</html>

docs/restapi/send_msg_multi.html

           <br/> <br/>
           <pre class="prettyprint linenums language-js">
 {
-  "msg": "Message to be sent,
+  "msg": "Message to be sent",
   "to":
   [
     {