123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- ===
- POST /columns
-
- {"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"}]}
- ===
- 200
- Content-Type: application/json
- Content-Length: 4
-
- true
- ===
- POST /records/types
- Content-Type: application/json
-
- {"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)"}
- ===
- 200
- Content-Type: application/json
- Content-Length: 1
-
- 1
- ===
- PUT /records/types/1
-
- {"integer":2,"bigint":2,"varchar":"b","decimal":2,"float":2,"double":2,"boolean":false,"date":"2000-01-02","time":"02:01:01","timestamp":"2000-01-02 02:01:01","clob":"b","blob":"Cg==","geometry":"POINT(2 2)"}
- ===
- 200
- Content-Type: application/json
- Content-Length: 1
-
- 1
- ===
- GET /records/types/1
- ===
- 200
- Content-Type: application/json
- Content-Length: 222
-
- {"id":1,"integer":2,"bigint":2,"varchar":"b","decimal":"2.0000","float":2,"double":2,"boolean":false,"date":"2000-01-02","time":"02:01:01","timestamp":"2000-01-02 02:01:01","clob":"b","blob":"Cg==","geometry":"POINT(2 2)"}
- ===
- PUT /records/types/1
-
- {"integer":3,"bigint":3,"varchar":"c","decimal":3,"float":3,"double":3,"boolean":true,"date":"2000-01-03","time":"03:01:01","timestamp":"2000-01-03 03:01:01","clob":"c","blob":"Yw==","geometry":"POINT(3 3)"}
- ===
- 200
- Content-Type: application/json
- Content-Length: 1
-
- 1
- ===
- GET /records/types/1
- ===
- 200
- Content-Type: application/json
- Content-Length: 221
-
- {"id":1,"integer":3,"bigint":3,"varchar":"c","decimal":"3.0000","float":3,"double":3,"boolean":true,"date":"2000-01-03","time":"03:01:01","timestamp":"2000-01-03 03:01:01","clob":"c","blob":"Yw==","geometry":"POINT(3 3)"}
- ===
- PUT /records/types/1
-
- {"integer":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 101
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"integer":"must be numeric"}}
- ===
- PUT /records/types/1
-
- {"bigint":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 100
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"bigint":"must be numeric"}}
- ===
- PUT /records/types/1
-
- {"varchar":"12345678901"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 94
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"varchar":"too long"}}
- ===
- PUT /records/types/1
-
- {"decimal":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 97
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"decimal":"not a float"}}
- ===
- PUT /records/types/1
-
- {"float":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 95
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"float":"not a float"}}
- ===
- PUT /records/types/1
-
- {"double":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 96
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"double":"not a float"}}
- ===
- PUT /records/types/1
-
- {"boolean":-1}
- ===
- 422
- Content-Type: application/json
- Content-Length: 105
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"boolean":"not a valid boolean"}}
- ===
- PUT /records/types/1
-
- {"boolean":null}
- ===
- 422
- Content-Type: application/json
- Content-Length: 100
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"boolean":"cannot be null"}}
- ===
- PUT /records/types/1
-
- {"date":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 117
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"date":"invalid date format use yyyy-mm-dd"}}
- ===
- PUT /records/types/1
-
- {"date":"still-no-date"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 99
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"date":"not a valid date"}}
- ===
- PUT /records/types/1
-
- {"time":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 115
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"invalid time format use hh:mm:ss"}}
- ===
- PUT /records/types/1
-
- {"time":"still:no:time"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 105
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"non-numeric time value"}}
- ===
- PUT /records/types/1
-
- {"time":"999:999:999"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 99
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"time":"not a valid time"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 136
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"invalid timestamp format use yyyy-mm-dd hh:mm:ss"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"string 01:01:01"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 122
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"invalid date format use yyyy-mm-dd"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"still-no-date 01:01:01"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 104
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"not a valid date"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"2001-01-01 string"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 120
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"invalid time format use hh:mm:ss"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"2001-01-01 still:no:time"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 110
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"non-numeric time value"}}
- ===
- PUT /records/types/1
-
- {"timestamp":"2001-01-01 999:999:999"}
- ===
- 422
- Content-Type: application/json
- Content-Length: 104
-
- {"code":1013,"message":"Input validation failed for 'types'","details":{"timestamp":"not a valid time"}}
- ===
- PUT /records/types/1
-
- {"clob":"HLnVf8PrxX/vPMElDxrlFLIHoBd1fnLVSXVEDLjt0bk="}
- ===
- 200
- Content-Type: application/json
- Content-Length: 1
-
- 1
- ===
- PUT /records/types/1
-
- {"blob":"T8O5IGVzdCBsZSBjYWbDqSBsZSBwbHVzIHByb2NoZT8="}
- ===
- 200
- Content-Type: application/json
- Content-Length: 1
-
- 1
- ===
- GET /records/types/1
- ===
- 200
- Content-Type: application/json
- Content-Length: 305
-
- {"id":1,"integer":3,"bigint":3,"varchar":"c","decimal":"3.0000","float":3,"double":3,"boolean":true,"date":"2000-01-03","time":"03:01:01","timestamp":"2000-01-03 03:01:01","clob":"HLnVf8PrxX\/vPMElDxrlFLIHoBd1fnLVSXVEDLjt0bk=","blob":"T8O5IGVzdCBsZSBjYWbDqSBsZSBwbHVzIHByb2NoZT8=","geometry":"POINT(3 3)"}
- ===
- DELETE /columns/types
- ===
- 200
- Content-Type: application/json
- Content-Length: 4
-
- true
|