test.http
1.13 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# http://localhost:3000/device?pageIndex=1&pageSize=5
# POST http://localhost:3000/device/add HTTP/1.1
# content-type: application/json
# {
# "sn":"sn11112112121235"
# }
# POST http://localhost:3000/device/addInfo HTTP/1.1
# content-type: application/json
# {
# "device_id":16,
# "mobile":"13800138000",
# "user":"老六",
# "merchant_name":"老登"
# }
# POST http://localhost:3000/device/updateInfo HTTP/1.1
# content-type: application/json
# {
# "device_id":5,
# "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":{
"order":"logs",
"payload":{
"message":"log message"
}
}
}
# http://localhost:3000/file/delete?id=16
# 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]
# }