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
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

016_update_forgiving_table.log 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. ===
  2. POST /columns
  3. {"name":"forgiving","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"integer","type":"integer"},{"name":"bigint","type":"bigint"},{"name":"varchar","type":"varchar","length":10},{"name":"decimal","type":"decimal","precision":10,"scale":4},{"name":"float","type":"float"},{"name":"double","type":"double"},{"name":"boolean","type":"boolean"},{"name":"date","type":"date"},{"name":"time","type":"time"},{"name":"timestamp","type":"timestamp"},{"name":"clob","type":"clob"},{"name":"blob","type":"blob"},{"name":"geometry","type":"geometry"}]}
  4. ===
  5. 200
  6. Content-Type: application/json
  7. Content-Length: 4
  8. true
  9. ===
  10. POST /records/forgiving
  11. Content-Type: application/json
  12. {"integer":2,"bigint":3,"varchar":"abc","decimal":1.23,"float":1,"double":23.45,"boolean":true,"date":"1970-01-01","time":"00:00:01","timestamp":"2001-02-03 04:05:06","clob":"a","blob":"YQ==","geometry":"POINT(1 2)"}
  13. ===
  14. 200
  15. Content-Type: application/json
  16. Content-Length: 1
  17. 1
  18. ===
  19. PUT /records/forgiving/1
  20. {"boolean":"true"}
  21. ===
  22. 200
  23. Content-Type: application/json
  24. Content-Length: 1
  25. 1
  26. ===
  27. GET /records/forgiving/1?include=boolean
  28. ===
  29. 200
  30. Content-Type: application/json
  31. Content-Length: 16
  32. {"boolean":true}
  33. ===
  34. PUT /records/forgiving/1
  35. {"boolean":"yes"}
  36. ===
  37. 200
  38. Content-Type: application/json
  39. Content-Length: 1
  40. 1
  41. ===
  42. GET /records/forgiving/1?include=boolean
  43. ===
  44. 200
  45. Content-Type: application/json
  46. Content-Length: 16
  47. {"boolean":true}
  48. ===
  49. PUT /records/forgiving/1
  50. {"boolean":"1"}
  51. ===
  52. 200
  53. Content-Type: application/json
  54. Content-Length: 1
  55. 1
  56. ===
  57. GET /records/forgiving/1?include=boolean
  58. ===
  59. 200
  60. Content-Type: application/json
  61. Content-Length: 16
  62. {"boolean":true}
  63. ===
  64. PUT /records/forgiving/1
  65. {"boolean":1}
  66. ===
  67. 200
  68. Content-Type: application/json
  69. Content-Length: 1
  70. 1
  71. ===
  72. GET /records/forgiving/1?include=boolean
  73. ===
  74. 200
  75. Content-Type: application/json
  76. Content-Length: 16
  77. {"boolean":true}
  78. ===
  79. PUT /records/forgiving/1
  80. {"integer":" 2\n"}
  81. ===
  82. 200
  83. Content-Type: application/json
  84. Content-Length: 1
  85. 1
  86. ===
  87. GET /records/forgiving/1?include=integer
  88. ===
  89. 200
  90. Content-Type: application/json
  91. Content-Length: 13
  92. {"integer":2}
  93. ===
  94. PUT /records/forgiving/1
  95. integer=2%20
  96. ===
  97. 200
  98. Content-Type: application/json
  99. Content-Length: 1
  100. 1
  101. ===
  102. GET /records/forgiving/1?include=integer
  103. ===
  104. 200
  105. Content-Type: application/json
  106. Content-Length: 13
  107. {"integer":2}
  108. ===
  109. PUT /records/forgiving/1
  110. {"integer":1.99999}
  111. ===
  112. 200
  113. Content-Type: application/json
  114. Content-Length: 1
  115. 1
  116. ===
  117. GET /records/forgiving/1?include=integer
  118. ===
  119. 200
  120. Content-Type: application/json
  121. Content-Length: 13
  122. {"integer":2}
  123. ===
  124. PUT /records/forgiving/1
  125. {"bigint":" 3\n"}
  126. ===
  127. 200
  128. Content-Type: application/json
  129. Content-Length: 1
  130. 1
  131. ===
  132. GET /records/forgiving/1?include=bigint
  133. ===
  134. 200
  135. Content-Type: application/json
  136. Content-Length: 12
  137. {"bigint":3}
  138. ===
  139. PUT /records/forgiving/1
  140. {"bigint":2.99999}
  141. ===
  142. 200
  143. Content-Type: application/json
  144. Content-Length: 1
  145. 1
  146. ===
  147. GET /records/forgiving/1?include=bigint
  148. ===
  149. 200
  150. Content-Type: application/json
  151. Content-Length: 12
  152. {"bigint":3}
  153. ===
  154. PUT /records/forgiving/1
  155. {"decimal":"1.23"}
  156. ===
  157. 200
  158. Content-Type: application/json
  159. Content-Length: 1
  160. 1
  161. ===
  162. GET /records/forgiving/1?include=decimal
  163. ===
  164. 200
  165. Content-Type: application/json
  166. Content-Length: 20
  167. {"decimal":"1.2300"}
  168. ===
  169. PUT /records/forgiving/1
  170. {"decimal":"1.23004"}
  171. ===
  172. 200
  173. Content-Type: application/json
  174. Content-Length: 1
  175. 1
  176. ===
  177. GET /records/forgiving/1?include=decimal
  178. ===
  179. 200
  180. Content-Type: application/json
  181. Content-Length: 20
  182. {"decimal":"1.2300"}
  183. ===
  184. PUT /records/forgiving/1
  185. {"decimal":"1.23006"}
  186. ===
  187. 200
  188. Content-Type: application/json
  189. Content-Length: 1
  190. 1
  191. ===
  192. GET /records/forgiving/1?include=decimal
  193. ===
  194. 200
  195. Content-Type: application/json
  196. Content-Length: 20
  197. {"decimal":"1.2301"}
  198. ===
  199. PUT /records/forgiving/1
  200. float=1%20
  201. ===
  202. 200
  203. Content-Type: application/json
  204. Content-Length: 1
  205. 1
  206. ===
  207. GET /records/forgiving/1?include=float
  208. ===
  209. 200
  210. Content-Type: application/json
  211. Content-Length: 11
  212. {"float":1}
  213. ===
  214. PUT /records/forgiving/1
  215. {"double":" 23.45e-1 "}
  216. ===
  217. 200
  218. Content-Type: application/json
  219. Content-Length: 1
  220. 1
  221. ===
  222. GET /records/forgiving/1?include=double
  223. ===
  224. 200
  225. Content-Type: application/json
  226. Content-Length: 16
  227. {"double":2.345}
  228. ===
  229. PUT /records/forgiving/1
  230. {"date":"2020-12-05"}
  231. ===
  232. 200
  233. Content-Type: application/json
  234. Content-Length: 1
  235. 1
  236. ===
  237. GET /records/forgiving/1?include=date
  238. ===
  239. 200
  240. Content-Type: application/json
  241. Content-Length: 21
  242. {"date":"2020-12-05"}
  243. ===
  244. PUT /records/forgiving/1
  245. {"date":"December 20th, 2020"}
  246. ===
  247. 200
  248. Content-Type: application/json
  249. Content-Length: 1
  250. 1
  251. ===
  252. GET /records/forgiving/1?include=date
  253. ===
  254. 200
  255. Content-Type: application/json
  256. Content-Length: 21
  257. {"date":"2020-12-20"}
  258. ===
  259. PUT /records/forgiving/1
  260. {"time":"13:15"}
  261. ===
  262. 200
  263. Content-Type: application/json
  264. Content-Length: 1
  265. 1
  266. ===
  267. GET /records/forgiving/1?include=time
  268. ===
  269. 200
  270. Content-Type: application/json
  271. Content-Length: 19
  272. {"time":"13:15:00"}
  273. ===
  274. PUT /records/forgiving/1
  275. {"timestamp":"2012-1-1 23:46"}
  276. ===
  277. 200
  278. Content-Type: application/json
  279. Content-Length: 1
  280. 1
  281. ===
  282. GET /records/forgiving/1?include=timestamp
  283. ===
  284. 200
  285. Content-Type: application/json
  286. Content-Length: 35
  287. {"timestamp":"2012-01-01 23:46:00"}
  288. ===
  289. PUT /records/forgiving/1
  290. {"clob":"𠜎𠜱𠝹𠱓𠱸𠲖𠳏𠳕𠴕𠵼𠵿𠸎𠸏𠹷𠺝𠺢𠻗"}
  291. ===
  292. 200
  293. Content-Type: application/json
  294. Content-Length: 1
  295. 1
  296. ===
  297. PUT /records/forgiving/1
  298. {"blob":"!"}
  299. ===
  300. 422
  301. Content-Type: application/json
  302. Content-Length: 101
  303. {"code":1013,"message":"Input validation failed for 'forgiving'","details":{"blob":"invalid base64"}}
  304. ===
  305. PUT /records/forgiving/1
  306. {"blob":"T8O5IGVzdCBsZSBjYWbDqSBsZSBwbHVzIHByb2NoZT8"}
  307. ===
  308. 200
  309. Content-Type: application/json
  310. Content-Length: 1
  311. 1
  312. ===
  313. DELETE /columns/forgiving
  314. ===
  315. 200
  316. Content-Type: application/json
  317. Content-Length: 4
  318. true