DeviceProductController.http 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ## 设备型号管理
  2. ### 设备型号查询
  3. GET {{host}}/device-product/_query?pageSize=10
  4. X-Access-Token: {{token}}
  5. Content-Type: application/json
  6. ### 新增/修改设备型号
  7. PATCH {{host}}/device-product
  8. X-Access-Token: {{token}}
  9. Content-Type: application/json
  10. {
  11. "state":0,
  12. "id":"test123456",
  13. "name":"test123456",
  14. "orgId":"",
  15. "messageProtocol":"1239767766126891008",
  16. "transportProtocol":"TCP",
  17. "deviceType":"device",
  18. "configuration":
  19. {"tcp_auth_key":"aaaa"}
  20. }
  21. ### 发布设备型号
  22. POST {{host}}/device-product/test123456/deploy
  23. X-Access-Token: {{token}}
  24. Content-Type: application/json
  25. {}
  26. ### 停用设备型号
  27. POST {{host}}/device-product/test123456/undeploy
  28. X-Access-Token: {{token}}
  29. Content-Type: application/json
  30. {}
  31. ### 根据ID查询设备型号详情
  32. GET {{host}}/device-product/test123456
  33. X-Access-Token: {{token}}
  34. Content-Type: application/json
  35. ### 型号协议认证配置查询
  36. GET {{host}}/protocol/1239767766126891008/TCP/configuration
  37. X-Access-Token: {{token}}
  38. Content-Type: application/json
  39. ###