提交 70780d9e 编写于 作者: B Boris

add docs

上级 cd45f53e
......@@ -21,4 +21,20 @@
# Restful API
### Basic usage of restful api
Before you use restful api, you have to login.
```
curl http://localhost:8282/user/login?username=root&password=root
```
Then insert some values.
```
curl -H "Content-Type: application/json" -X POST --data '[{"deviceId": "root.ln.wf01.wt01","measurements": ["temperature","status"],"timestamps": 1,"values": [1.1,false]}]' http://localhost:8282/insert
```
check details in [Restful doc](https://documenter.getpostman.com/view/12320024/T1LLDnuj).
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册