Hi, I am currently working on developing a Python Client for DAS 4.0 Event Simulator as a part of my GSOC project with WSO2.
When I used the REST endpoint *GET* http:// <DAS_HOST>:<API_PORT>/simulation/single/{simulationName}, I get a JSON response with an incorrect field value. The JSON response consist of two string fields "status" and "message" where the value of "message" is an *invalid JSON text* describing a Simulation Configuration. For example, the following is a message field I got from DAS 4.0. Simulation configuration : {"sources":[{"timeStampInterval":"5","simulationType":"RANDOM_DATA_SIMULATION","attributeConfiguration":[{"length":"10","type":"PRIMITIVE_BASED"},{"min":"30000","max":"30000","precision":"2","type":"PRIMITIVE_BASED"},{"min":"300","max":"300","type":"PRIMITIVE_BASED"}],"streamName":"FooStream","siddhiAppName":"TestSiddhiApp"}],"properties":{"timestampStartTime":"1488615136958","simulationName":"simulationPrimitive","timeInterval":"1000","timestampEndTime":null,"noOfEvents":"8"}} In the above, Simulation configuration should be within inverted commas, such as "Simulation Configuration" to properly support JSON parsing. (tested with standard JSON parser of Python3) P.s. I am using DAS 4.0, latest version from master branch. Kind Regards, -- *Madhawa Vidanapathirana* Student Department of Computer Science and Engineering University of Moratuwa Sri Lanka Mobile: (+94) 716874425 Email: madhawavidanapathir...@gmail.com Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev