test.http 1.13 KB
# 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]
# }