/keyspace (get all keyspace)
curl \
-X GET \
http://localhost/keyspace \
-H ' Content-Type: application/json'
/table (get all table in keyspace)
curl \
-X GET \
http://localhost/table? keyspace=abc \
-H ' Content-Type: application/json'
/row (get all row in table)
curl \
-X GET \
http://localhost/row? table=ca.abc& limit=5& token_key=a& next_token=Serenity \
-H ' Content-Type: application/json'
/rowtoken (get all row in table by token)
table
item
prevnext
pagesize
curl \
-X POST \
http://localhost/rowtoken \
-H ' Content-Type: application/json' \
-d ' {"table":"table_name", "item":"{field1:value1, field2:value2}", "prevnext": "next", "pagesize": 10}'
curl \
-X POST \
http://localhost/query \
-H ' Content-Type: application/json' \
-d ' {"query":"cql query"}'
curl \
-X POST \
http://localhost/save \
-H ' Content-Type: application/json' \
-d ' {"table":"table_name", "item":"{field1:value1, field2:value2}"}'
/describe (cqlsh describe)
curl \
-X GET \
http://localhost/describe? table=ca.abc
-H ' Content-Type: application/json' \
/columns (get table columns)
curl \
-X GET \
http://localhost/columns \
-H ' Content-Type: application/json' \
-d ' {"keyspace":"system_auth", "table":"roles"}'
/delete (delete table row)
curl \
-X POST \
http://localhost/delete \
-H ' Content-Type: application/json' \
-d ' {"table":"table_name", "item":"{field1:value1, field2:value2}"}'
table
item
order_by array[object{name:columns_name,order:asc|desc}] only clustering key and by order
pagesize
page
curl \
-X POST \
http://localhost/find \
-H ' Content-Type: application/json' \
-d ' {"table":"tablename","item":{"order_id":{"operator":"=","value":"123"},"order_time":{"operator":"=","value":"456"}}, "page": 1, "pagesize": 10}'
/Export (export file table data)
curl \
-X POST \
http://localhost/export? table=keyspace.table \
-H ' Content-Type: application/json' \
/Import (import file table data)
curl \
-X POST \
http://localhost/import \
-F " table=keyspace.table" \
-F " filecomment=This is an image file" \
-F " file=@/home/user/Desktop/importfile" \
/truncate (truncate table data)
curl \
-X POST \
http://localhost/truncate \
-H ' Content-Type: application/json' \
-d ' {"table":"table_name"}'