Updating document for REST usage.

This commit is contained in:
Admin
2015-11-09 16:47:38 -06:00
parent 718ba5a5c2
commit 40123ed858

View File

@@ -37,7 +37,13 @@ Configure by going to the url for the host you are running on or localhost with
```
http://<ip address>:<port>
```
## Command line configure
## Command line usage
This section will describe the REST api available for configuration. The REST examples are all formatted for easy reading, the actual usage should be like this:
```
{"var1":"value1","var2":"value2","var3:"value3"}
```
As it should be in all one big string and not separated by returns,tabs or spaces.
### Add a device
Register a device via REST by by using a tool and the url, for example:
```
POST http://host:8080/api/devices