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.

003_db_auth.log 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. ===
  2. GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
  3. ===
  4. 404
  5. Content-Type: application/json; charset=utf-8
  6. Content-Length: 54
  7. {"code":1001,"message":"Table 'invisibles' not found"}
  8. ===
  9. POST /login
  10. Content-Type: application/json; charset=utf-8
  11. {"username":"user2","password":"pass2"}
  12. ===
  13. 200
  14. Content-Type: application/json; charset=utf-8
  15. Content-Length: 27
  16. {"id":2,"username":"user2"}
  17. ===
  18. GET /me
  19. ===
  20. 200
  21. Content-Type: application/json; charset=utf-8
  22. Content-Length: 27
  23. {"id":2,"username":"user2"}
  24. ===
  25. GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
  26. ===
  27. 200
  28. Content-Type: application/json; charset=utf-8
  29. Content-Length: 45
  30. {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
  31. ===
  32. POST /login
  33. Content-Type: application/json; charset=utf-8
  34. {"username":"user2","password":"incorect password"}
  35. ===
  36. 403
  37. Content-Type: application/json; charset=utf-8
  38. Content-Length: 59
  39. {"code":1012,"message":"Authentication failed for 'user2'"}
  40. ===
  41. GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
  42. ===
  43. 200
  44. Content-Type: application/json; charset=utf-8
  45. Content-Length: 45
  46. {"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
  47. ===
  48. POST /logout
  49. ===
  50. 200
  51. Content-Type: application/json; charset=utf-8
  52. Content-Length: 27
  53. {"id":2,"username":"user2"}
  54. ===
  55. GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
  56. ===
  57. 404
  58. Content-Type: application/json; charset=utf-8
  59. Content-Length: 54
  60. {"code":1001,"message":"Table 'invisibles' not found"}
  61. ===
  62. POST /logout
  63. ===
  64. 401
  65. Content-Type: application/json; charset=utf-8
  66. Content-Length: 49
  67. {"code":1011,"message":"Authentication required"}
  68. ===
  69. POST /register
  70. Content-Type: application/json; charset=utf-8
  71. {"username":"user2","password":""}
  72. ===
  73. 422
  74. Content-Type: application/json; charset=utf-8
  75. Content-Length: 60
  76. {"code":1021,"message":"Password too short (<4 characters)"}
  77. ===
  78. POST /register
  79. Content-Type: application/json; charset=utf-8
  80. {"username":"user2","password":"pass2"}
  81. ===
  82. 409
  83. Content-Type: application/json; charset=utf-8
  84. Content-Length: 53
  85. {"code":1020,"message":"User 'user2' already exists"}
  86. ===
  87. POST /register
  88. Content-Type: application/json; charset=utf-8
  89. {"username":"user3","password":"pass3"}
  90. ===
  91. 200
  92. Content-Type: application/json; charset=utf-8
  93. Content-Length: 27
  94. {"id":3,"username":"user3"}
  95. ===
  96. POST /login
  97. Content-Type: application/json; charset=utf-8
  98. {"username":"user3","password":"pass3"}
  99. ===
  100. 200
  101. Content-Type: application/json; charset=utf-8
  102. Content-Length: 27
  103. {"id":3,"username":"user3"}
  104. ===
  105. GET /me
  106. ===
  107. 200
  108. Content-Type: application/json; charset=utf-8
  109. Content-Length: 27
  110. {"id":3,"username":"user3"}
  111. ===
  112. POST /password
  113. Content-Type: application/json; charset=utf-8
  114. {"username":"user3","password":"pass3","newPassword":"secret3"}
  115. ===
  116. 200
  117. Content-Type: application/json; charset=utf-8
  118. Content-Length: 27
  119. {"id":3,"username":"user3"}
  120. ===
  121. POST /logout
  122. ===
  123. 200
  124. Content-Type: application/json; charset=utf-8
  125. Content-Length: 27
  126. {"id":3,"username":"user3"}
  127. ===
  128. POST /login
  129. Content-Type: application/json; charset=utf-8
  130. {"username":"user3","password":"secret3"}
  131. ===
  132. 200
  133. Content-Type: application/json; charset=utf-8
  134. Content-Length: 27
  135. {"id":3,"username":"user3"}
  136. ===
  137. GET /me
  138. ===
  139. 200
  140. Content-Type: application/json; charset=utf-8
  141. Content-Length: 27
  142. {"id":3,"username":"user3"}
  143. ===
  144. POST /logout
  145. ===
  146. 200
  147. Content-Type: application/json; charset=utf-8
  148. Content-Length: 27
  149. {"id":3,"username":"user3"}
  150. ===
  151. DELETE /records/users/3
  152. ===
  153. 200
  154. Content-Type: application/json; charset=utf-8
  155. Content-Length: 1
  156. 1