test.http
842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# http://localhost:3000/device?pageIndex=2&pageSize=5
# POST http://localhost:3000/device/add HTTP/1.1
# content-type: application/json
# {
# "sn":"sn1111211212122"
# }
# POST http://localhost:3000/device/addInfo HTTP/1.1
# content-type: application/json
# {
# "device_id":13,
# "mobile":"13800138000",
# "user":"王老七",
# "merchant_name":"老点"
# }
# http://localhost:3000/sse/event
# POST http://localhost:3000/broadcast/message HTTP/1.1
# content-type: application/json
# {
# "event":"private",
# "device_id":1,
# "data":{
# "message":"hello limin"
# }
# }
# http://localhost:3000/config?device_id=2
POST http://localhost:3000/config/add HTTP/1.1
content-type: application/json
{
"device_id":1,
"log_saved_days":8,
"user_fields":[1,2,3,4]
}