Fix API doc

This commit is contained in:
Paulus Schoutsen 2015-04-26 17:36:14 -07:00
parent 5e3995562c
commit 98902ef548

View File

@ -123,9 +123,11 @@ Expects a JSON object that has atleast a state attribute:
```json
{
"state": "below_horizon",
"attributes": {
"next_rising": "07:04:15 29-10-2013",
"next_setting": "18:00:31 29-10-2013"
}
}
```
Return code is 200 if the entity existed, 201 if the state of a new entity was set. A location header will be returned with the url of the new resource. The response body will contain a JSON encoded State object.