api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

080_add_barcode_with_ip_address.log 707B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ===
  2. POST /records/barcodes
  3. {"product_id":1,"hex":"","bin":""}
  4. ===
  5. 200
  6. Content-Type: application/json; charset=utf-8
  7. Content-Length: 1
  8. 2
  9. ===
  10. GET /records/barcodes/2
  11. ===
  12. 200
  13. Content-Type: application/json; charset=utf-8
  14. Content-Length: 64
  15. {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
  16. ===
  17. PUT /records/barcodes/2
  18. {"ip_address":"FAKE_IP"}
  19. ===
  20. 200
  21. Content-Type: application/json; charset=utf-8
  22. Content-Length: 1
  23. 0
  24. ===
  25. GET /records/barcodes/2
  26. ===
  27. 200
  28. Content-Type: application/json; charset=utf-8
  29. Content-Length: 64
  30. {"id":2,"product_id":1,"hex":"","bin":"","ip_address":"TEST_IP"}
  31. ===
  32. DELETE /records/barcodes/2
  33. ===
  34. 200
  35. Content-Type: application/json; charset=utf-8
  36. Content-Length: 1
  37. 1