request.http 450 B

1234567891011121314151617181920
  1. # curl -X POST -H "Content-Type: application/json" -d '{"key1": "value1", "key2": "value2"}' http://localhost:8000/api/device/list
  2. POST http://127.0.0.1:8888
  3. Content-Type: application/json
  4. {
  5. "printerType": 0,
  6. "templateName": "HP3G46S-0B0001",
  7. "printerIp": "192.168.168.100",
  8. "printerPort": "8050",
  9. "payload": {
  10. "sn": "this_is_sn_name",
  11. "seq": "this_is_seq_sequence"
  12. },
  13. "fieldOrders": ["sn", "seq"]
  14. }