On this page

Delete a table

Method : DELETE
URI : /db/<dbname>/<table_name>

Example

curl -X DELETE http://192.168.1.105:18080/db/mydb/my_table_test

Response

{
   "msg": "successfully dropped the table"
}

Stream Processing : All stream related API starts with /stream

Register schema for stream processing

Method : POST
URI : /stream
Body :

{ schema doc }

Schema is a json doc which contains information about stream processing. Please see the details for the json doc here

Example

curl -H "Content-Type: application/json" -d '{"schema": "ecomm","streams":
[{"name":"visitor", "type":1, "swsz":86400,"inpt":[],"attr":
[{"name":"vid","type":5,"kysz":24},{"name":"prod","type":5,"kysz":24},
{"name":"refr","type":5,"kysz":48},{"name":"price","type":11},
{"name":"items","type":9}]}]}' -X POST http://192.168.1.105:18080/stream
Note: The schema doc is typically much bigger than what we are using here in example. Here we have extremely simplistic schema document.

Please check out the stream section of the document for details. Also, it’s rather easy to create schema for stream processing using CLI or dashboard

Response

{
   "errcode": 0
}

Here is errcode is 0 then the operation is successful, we may get some messages but as long as errcode is 0, it means the registration was successful

Was this article helpful to you? Yes No