Skip to content

Commit

Permalink
Add some basic api docs for /waypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kragniz committed Apr 16, 2017
1 parent 88197d7 commit 69fea3f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,42 @@ Boatd's main method of interaction is via the JSON API.
"speed": 25
}
``/waypoints``
--------------

- ``GET``

Returns the active set of waypoints

.. code:: json
{
"current": [1.0, 1.0],
"home": [0.0, 0.0],
"waypoints": [
[0.0, 0.0],
[1.0, 1.0],
[2.0, 2.0]
]
}
- ``POST``

Add to the current set of waypoints

.. code:: json
{
"waypoints": [
[0.0, 0.0],
[1.0, 1.0],
[2.0, 2.0]
]
}
``/behaviours``
---------------

Expand Down

0 comments on commit 69fea3f

Please sign in to comment.