Stream processing: All stream related API starts with /stream

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","typ
e":5,"kysz":48},{"name":"price","type":11},{"name":"items","type":9}]}]}' -X POST http://192.168.1.105:18080/stream

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.