- Generate IoTDataModelingFramework.war with maven clean install
- Deploy IoTDataModelingFramework.war file in /opt/tomcat/webapps (tomcat version 8)
- Execute $ sudo service tomcat restart
- The webapp is accessible from http://localhost:8080/IoTDataModelingFramework/DemoService.svc/
Path | Method | Response |
---|---|---|
/$metadata | GET | Returns metadata for all entities (application, sensor,metric, measurement) |
/Applications | GET | Returns details about every application in the database |
/Sensors?$filter=appId eq 'appId value' | GET | Returns sensors that belongs to the specific application |
/Metrics?$filter=sensorId eq 'sensorId value' | GET | Returns metrics tha belongs to the specific sensor |
/Measurements?$filter=metricId eq 'metricId value' and timestamp gt 'timestamp 1' and timestamp lt 'timestamp 2' | GET | Returns measurements with timestamp value between the two timestamps for the specific metric |
/Applications?data=Json | POST | Creates new application |
/Sensors?data=Json | POST | Creates new sensor |
/Metrics?data=Json | POST | Creates new metric |
/Measurements?data=Json | POST | Insert a new measurement |
- Generate IoTDataModelingFramework-jar-with-dependencies.jar with mvn clean compile assembly:single
- Run with java -jar IoTDataModelingFramework-jar-with-dependencies.jar
- Arguments:
- Number of sensors that sends measurements (>0)
- Number of measurements to send (>0)
- Time period to send measurement (>=0)
- Immediate start (0,1)
- Logs location (String)
- Name of the logs (String)