TensorflowTestApp fix in curl command and postman request
@@ -29,7 +29,7 @@ Testing the Sample:
* Send events to the simulator http endpoint through the curl command:
a) Open a new terminal and issue the following command:
- * curl -X POST -d '{"streamName": "InputStream", "siddhiAppName": "TensorFlowTestApp","data": 'double:[1,-2]'}' http://localhost:9390/simulation/single -H 'content-type: text/plain'
+ * curl -X POST \http://localhost:9390/simulation/single \-H 'content-type: text/plain' \-d '{"streamName": "InputStream", "siddhiAppName": "TensorFlowTestApp","data": ["double:[1,-2]"]}'
b) If there is no error, the following messages are shown on the terminal:
* {"status":"OK","message":"Single Event simulation started successfully"}
@@ -37,7 +37,7 @@ Testing the Sample:
a) Install 'Postman' application from Chrome web store.
b) Launch the application.
c) Make a 'Post' request to the 'http://localhost:9390/simulation/single' endpoint. Set the Content-Type to 'text/plain' and set the request body in text as follows:
- {"streamName": "InputStream", "siddhiAppName": "TensorFlowTestApp","data": 'double:[1,-2]'}
+ {"streamName": "InputStream", "siddhiAppName": "TensorFlowTestApp","data": ['double:[1,-2]']}
d) Click 'send'. If there is no error, the following messages are shown on the console:
* "status": "OK",
* "message": "Single Event simulation started successfully"
