提交 4e6f97df 编写于 作者: 浅梦2013's avatar 浅梦2013

📝 优化文档

上级 c6273e3a
...@@ -61,8 +61,6 @@ ...@@ -61,8 +61,6 @@
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/publish" -d '{"topic":"a/b/c","payload":"Hello World","qos":1,"retain":false,"clientId":"example"}' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/publish" -d '{"topic":"a/b/c","payload":"Hello World","qos":1,"retain":false,"clientId":"example"}'
{"code":0} {"code":0}
Copied!
``` ```
## 主题订阅 ## 主题订阅
...@@ -93,8 +91,6 @@ Copied! ...@@ -93,8 +91,6 @@ Copied!
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/subscribe" -d '{"topic":"a/b/c","qos":1,"clientId":"example"}' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/subscribe" -d '{"topic":"a/b/c","qos":1,"clientId":"example"}'
{"code":0} {"code":0}
Copied!
``` ```
### POST /api/v1/mqtt/unsubscribe ### POST /api/v1/mqtt/unsubscribe
...@@ -122,8 +118,6 @@ Copied! ...@@ -122,8 +118,6 @@ Copied!
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/unsubscribe" -d '{"topic":"a","qos":1,"clientId":"example"}' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/unsubscribe" -d '{"topic":"a","qos":1,"clientId":"example"}'
{"code":0} {"code":0}
Copied!
``` ```
## 消息批量发布 ## 消息批量发布
...@@ -155,8 +149,6 @@ Copied! ...@@ -155,8 +149,6 @@ Copied!
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/publish/batch" -d '[{"topic":"a/b/c","payload":"Hello World","qos":1,"retain":false,"clientId":"example"},{"topic":"a/b/c","payload":"Hello World Again","qos":0,"retain":false,"clientId":"example"}]' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/publish/batch" -d '[{"topic":"a/b/c","payload":"Hello World","qos":1,"retain":false,"clientId":"example"},{"topic":"a/b/c","payload":"Hello World Again","qos":0,"retain":false,"clientId":"example"}]'
{"code":0} {"code":0}
Copied!
``` ```
## 主题批量订阅 ## 主题批量订阅
...@@ -187,8 +179,6 @@ Copied! ...@@ -187,8 +179,6 @@ Copied!
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/subscribe/batch" -d '[{"topic":"a","qos":1,"clientId":"example"},{"topic":"b","qos":1,"clientId":"example"},{"topic":"c","qos":1,"clientId":"example"}]' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/subscribe/batch" -d '[{"topic":"a","qos":1,"clientId":"example"},{"topic":"b","qos":1,"clientId":"example"},{"topic":"c","qos":1,"clientId":"example"}]'
{"code":0} {"code":0}
Copied!
``` ```
### POST /api/v1/mqtt/unsubscribe/batch ### POST /api/v1/mqtt/unsubscribe/batch
...@@ -216,6 +206,4 @@ Copied! ...@@ -216,6 +206,4 @@ Copied!
$ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/unsubscribe/batch" -d '[{"topic":"a","qos":1,"clientId":"example"},{"topic":"b","qos":1,"clientId":"example"}]' $ curl -i --basic -u mica:mica -X POST "http://localhost:8083/api/v1/mqtt/unsubscribe/batch" -d '[{"topic":"a","qos":1,"clientId":"example"},{"topic":"b","qos":1,"clientId":"example"}]'
{"code":0} {"code":0}
Copied!
``` ```
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
<licenses> <licenses>
<license> <license>
<name>Apache License 2.0</name> <name>Apache License 2.0</name>
<url>http://www.apache.org/licenses</url> <url>https://www.apache.org/licenses</url>
</license> </license>
</licenses> </licenses>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册