提交 97e38a93 authored 作者: blu's avatar blu

big refacting of communitation architect

上级 02059f3a
...@@ -85,10 +85,12 @@ query configuration for edge device with specified sn ...@@ -85,10 +85,12 @@ query configuration for edge device with specified sn
##### description ##### description
set or change configuration for edge device set or change configuration for edge device
##### params ##### params
- none - patch(optional): false(default)|true, wheather body is the json diff regards to edge device identified by sn
- sn: string, only used when patch is set as true
##### body ##### body
- type: json - type: json
- example - example
1. full configure
``` ```
{ {
"data":{ "data":{
...@@ -156,6 +158,11 @@ set or change configuration for edge device ...@@ -156,6 +158,11 @@ set or change configuration for edge device
"lastupdated":1567669674 "lastupdated":1567669674
} }
``` ```
2. patch configure
POST /config?patch=true&sn=NMXH73Y2
```
[{"op":"add","path":"/ipcs/0/modules/evpuller/0/enabled","value":1}]
```
##### return ##### return
- type: json - type: json
- example: - example:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论