test.http
1.56 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
60
61
62
63
64
65
66
67
68
69
70
71
# http://localhost:3000/device?pageIndex=1&pageSize=5
# http://localhost:3000/device/addAll
# http://localhost:3000/device/task
# POST http://localhost:3000/device/add HTTP/1.1
# content-type: application/json
# {
# "sn":"26DYD24513203857"
# }
# POST http://localhost:3000/device/addInfo HTTP/1.1
# content-type: application/json
# {
# "device_id":1000001,
# "mobile":"13335327367",
# "user":"郝小美",
# "merchant_name":"D+陕西榆林华睿通园区店(44211168)"
# }
# POST http://localhost:3000/device/updateInfo HTTP/1.1
# content-type: application/json
# {
# "device_id":1000002,
# "mobile":"13335327367",
# "user":"郝小美",
# "merchant_name":"D+陕西榆林华睿通园区店(44211168)"
# }
# http://localhost:3000/sse/event
# POST http://localhost:3000/broadcast/cmd HTTP/1.1
# content-type: application/json
# {
# "event":"private",
# "device_id":1000000,
# "data":{
# "command":"getLog",
# "payload":{
# "key":"recordList"
# }
# }
# }
# http://localhost:3000/file/list?device_id=1000000
# http://localhost:3000/config?device_id=1000000
# http://localhost:3000/file/delete?id=50
# POST http://localhost:3000/config/add HTTP/1.1
# content-type: application/json
# {
# "device_id":1000002,
# "log_saved_days":7,
# "user_fields":[1,2,3]
# }
# POST http://localhost:3000/fields/user/add HTTP/1.1
# content-type: application/json
# {
# "name":"userType",
# "type":"user"
# }
http://localhost:3000/fields/user/list?name=name