For demonstration purposes, you can use above docker image as a informix database.
You can use standard http requests to CRUD operations.
insert = POST
get = GET
update = PUT
delete = DELETE etc
Sample requests
Sample Testing
database = test_db
table = test_tbl
table schema = id int(11), name varchar(20)
Insert request
http://192.168.111.132:27018/test_db/test_tbl
{
"id":0,
"name":"sujith"
}
Get request
http://192.168.111.132:27018/test_db/test_tbl
{
{
"id":0,
"name":"sujith"
},
{
"id":1,
"name":"delachithra"
}
}
Update request
http://192.168.111.132:27018/test_db/test_tbl/id/2
{
"id":2,
"name":"test update"
}
Delete request
http://192.168.111.132:27018/test_db/test_tbl/id/2
No comments:
Post a Comment