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.

015_update_types_table.log 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. ===
  2. POST /columns
  3. {"name":"types","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/types
  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/types/1
  20. {"boolean":null}
  21. ===
  22. 422
  23. Content-Type: application/json
  24. Content-Length: 100
  25. {"code":1013,"message":"Input validation failed for 'types'","details":{"boolean":"cannot be null"}}
  26. ===
  27. PUT /records/types/1
  28. {"integer":" 1\n"}
  29. ===
  30. 422
  31. Content-Type: application/json
  32. Content-Length: 104
  33. {"code":1013,"message":"Input validation failed for 'types'","details":{"integer":"illegal whitespace"}}
  34. ===
  35. PUT /records/types/1
  36. {"integer":"23e"}
  37. ===
  38. 422
  39. Content-Type: application/json
  40. Content-Length: 101
  41. {"code":1013,"message":"Input validation failed for 'types'","details":{"integer":"invalid integer"}}
  42. ===
  43. PUT /records/types/1
  44. integer=23e
  45. ===
  46. 422
  47. Content-Type: application/json
  48. Content-Length: 101
  49. {"code":1013,"message":"Input validation failed for 'types'","details":{"integer":"invalid integer"}}
  50. ===
  51. PUT /records/types/1
  52. {"integer":"12345678901"}
  53. ===
  54. 422
  55. Content-Type: application/json
  56. Content-Length: 101
  57. {"code":1013,"message":"Input validation failed for 'types'","details":{"integer":"invalid integer"}}
  58. ===
  59. PUT /records/types/1
  60. {"bigint":"12345678901234567890"}
  61. ===
  62. 422
  63. Content-Type: application/json
  64. Content-Length: 100
  65. {"code":1013,"message":"Input validation failed for 'types'","details":{"bigint":"invalid integer"}}
  66. ===
  67. PUT /records/types/1
  68. {"varchar":"12345678901"}
  69. ===
  70. 422
  71. Content-Type: application/json
  72. Content-Length: 101
  73. {"code":1013,"message":"Input validation failed for 'types'","details":{"varchar":"string too long"}}
  74. ===
  75. PUT /records/types/1
  76. {"decimal":"12.23.34"}
  77. ===
  78. 422
  79. Content-Type: application/json
  80. Content-Length: 101
  81. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"invalid decimal"}}
  82. ===
  83. PUT /records/types/1
  84. {"decimal":1131313145345}
  85. ===
  86. 422
  87. Content-Type: application/json
  88. Content-Length: 103
  89. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too large"}}
  90. ===
  91. PUT /records/types/1
  92. {"decimal":"1234567.123"}
  93. ===
  94. 422
  95. Content-Type: application/json
  96. Content-Length: 103
  97. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too large"}}
  98. ===
  99. PUT /records/types/1
  100. {"decimal":11313131e+5}
  101. ===
  102. 422
  103. Content-Type: application/json
  104. Content-Length: 103
  105. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too large"}}
  106. ===
  107. PUT /records/types/1
  108. {"decimal":"123456.12345"}
  109. ===
  110. 422
  111. Content-Type: application/json
  112. Content-Length: 105
  113. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too precise"}}
  114. ===
  115. PUT /records/types/1
  116. {"decimal":113131.3145345}
  117. ===
  118. 422
  119. Content-Type: application/json
  120. Content-Length: 105
  121. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too precise"}}
  122. ===
  123. PUT /records/types/1
  124. {"decimal":11313131E-5}
  125. ===
  126. 422
  127. Content-Type: application/json
  128. Content-Length: 105
  129. {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"decimal too precise"}}
  130. ===
  131. PUT /records/types/1
  132. {"float":"string"}
  133. ===
  134. 422
  135. Content-Type: application/json
  136. Content-Length: 97
  137. {"code":1013,"message":"Input validation failed for 'types'","details":{"float":"invalid float"}}
  138. ===
  139. PUT /records/types/1
  140. {"double":"string"}
  141. ===
  142. 422
  143. Content-Type: application/json
  144. Content-Length: 98
  145. {"code":1013,"message":"Input validation failed for 'types'","details":{"double":"invalid float"}}
  146. ===
  147. PUT /records/types/1
  148. {"boolean":-1}
  149. ===
  150. 422
  151. Content-Type: application/json
  152. Content-Length: 101
  153. {"code":1013,"message":"Input validation failed for 'types'","details":{"boolean":"invalid boolean"}}
  154. ===
  155. PUT /records/types/1
  156. {"date":"string"}
  157. ===
  158. 422
  159. Content-Type: application/json
  160. Content-Length: 95
  161. {"code":1013,"message":"Input validation failed for 'types'","details":{"date":"invalid date"}}
  162. ===
  163. PUT /records/types/1
  164. {"date":"still-no-date"}
  165. ===
  166. 422
  167. Content-Type: application/json
  168. Content-Length: 95
  169. {"code":1013,"message":"Input validation failed for 'types'","details":{"date":"invalid date"}}
  170. ===
  171. PUT /records/types/1
  172. {"time":"string"}
  173. ===
  174. 422
  175. Content-Type: application/json
  176. Content-Length: 95
  177. {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"invalid time"}}
  178. ===
  179. PUT /records/types/1
  180. {"time":"still:no:time"}
  181. ===
  182. 422
  183. Content-Type: application/json
  184. Content-Length: 95
  185. {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"invalid time"}}
  186. ===
  187. PUT /records/types/1
  188. {"time":"999:999:999"}
  189. ===
  190. 422
  191. Content-Type: application/json
  192. Content-Length: 95
  193. {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"invalid time"}}
  194. ===
  195. PUT /records/types/1
  196. {"timestamp":"string"}
  197. ===
  198. 422
  199. Content-Type: application/json
  200. Content-Length: 105
  201. {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"invalid timestamp"}}
  202. ===
  203. PUT /records/types/1
  204. {"timestamp":"2001-01-01 999:999:999"}
  205. ===
  206. 422
  207. Content-Type: application/json
  208. Content-Length: 105
  209. {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"invalid timestamp"}}
  210. ===
  211. PUT /records/types/1
  212. {"clob":"𠜎𠜱𠝹𠱓𠱸𠲖𠳏𠳕𠴕𠵼𠵿𠸎𠸏𠹷𠺝𠺢𠻗"}
  213. ===
  214. 200
  215. Content-Type: application/json
  216. Content-Length: 1
  217. 1
  218. ===
  219. PUT /records/types/1
  220. {"blob":"!"}
  221. ===
  222. 422
  223. Content-Type: application/json
  224. Content-Length: 97
  225. {"code":1013,"message":"Input validation failed for 'types'","details":{"blob":"invalid base64"}}
  226. ===
  227. PUT /records/types/1
  228. {"blob":"T8O5IGVzdCBsZSBjYWbDqSBsZSBwbHVzIHByb2NoZT8"}
  229. ===
  230. 200
  231. Content-Type: application/json
  232. Content-Length: 1
  233. 1
  234. ===
  235. GET /records/types/1
  236. ===
  237. 200
  238. Content-Type: application/json
  239. Content-Length: 334
  240. {"id":1,"integer":2,"bigint":3,"varchar":"abc","decimal":"1.2300","float":1,"double":23.45,"boolean":true,"date":"1970-01-01","time":"00:00:01","timestamp":"2001-02-03 04:05:06","clob":"𠜎𠜱𠝹𠱓𠱸𠲖𠳏𠳕𠴕𠵼𠵿𠸎𠸏𠹷𠺝𠺢𠻗","blob":"T8O5IGVzdCBsZSBjYWbDqSBsZSBwbHVzIHByb2NoZT8=","geometry":"POINT(1 2)"}
  241. ===
  242. DELETE /columns/types
  243. ===
  244. 200
  245. Content-Type: application/json
  246. Content-Length: 4
  247. true