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.

069_increment_event_visitors.log 896B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ===
  2. GET /records/events/1?include=visitors
  3. ===
  4. 200
  5. Content-Type: application/json; charset=utf-8
  6. Content-Length: 14
  7. {"visitors":0}
  8. ===
  9. PATCH /records/events/1
  10. {"visitors":1}
  11. ===
  12. 200
  13. Content-Type: application/json; charset=utf-8
  14. Content-Length: 1
  15. 1
  16. ===
  17. PATCH /records/events/1
  18. {"visitors":1}
  19. ===
  20. 200
  21. Content-Type: application/json; charset=utf-8
  22. Content-Length: 1
  23. 1
  24. ===
  25. PATCH /records/events/1,1
  26. [{"visitors":1},{"visitors":1}]
  27. ===
  28. 200
  29. Content-Type: application/json; charset=utf-8
  30. Content-Length: 5
  31. [1,1]
  32. ===
  33. GET /records/events/1?include=visitors
  34. ===
  35. 200
  36. Content-Type: application/json; charset=utf-8
  37. Content-Length: 14
  38. {"visitors":4}
  39. ===
  40. PATCH /records/events/1
  41. {"visitors":-4}
  42. ===
  43. 200
  44. Content-Type: application/json; charset=utf-8
  45. Content-Length: 1
  46. 1
  47. ===
  48. GET /records/events/1?include=visitors
  49. ===
  50. 200
  51. Content-Type: application/json; charset=utf-8
  52. Content-Length: 14
  53. {"visitors":0}