[{"id":"1f38d152.158887","type":"tab","label":"Mysql html template","disabled":false,"info":""},{"id":"b7e1fa83.2683","type":"mysql","z":"1f38d152.158887","mydb":"6d515c03.0cfa34","name":"DB Medinf","x":430,"y":320,"wires":[["8cfdba8d.f6fa6","37aac63e.12bf7a"]]},{"id":"21d5294.4848256","type":"inject","z":"1f38d152.158887","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":220,"wires":[["9e4d18eb.07bce8"]]},{"id":"acd4396.b3dce48","type":"debug","z":"1f38d152.158887","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":460,"y":180,"wires":[]},{"id":"9e4d18eb.07bce8","type":"function","z":"1f38d152.158887","name":"Select SQL","func":"msg.topic=\"select * from patient where 1\";\nreturn msg;","outputs":1,"noerr":0,"x":190,"y":360,"wires":[["b7e1fa83.2683"]]},{"id":"8cfdba8d.f6fa6","type":"json","z":"1f38d152.158887","name":"","property":"payload","action":"str","pretty":false,"x":440,"y":260,"wires":[["acd4396.b3dce48"]]},{"id":"d2a95449.678df8","type":"http in","z":"1f38d152.158887","name":"","url":"/showPatients","method":"get","upload":false,"swaggerDoc":"","x":180,"y":520,"wires":[["9e4d18eb.07bce8"]]},{"id":"ccdface3.c684a8","type":"http response","z":"1f38d152.158887","name":"","statusCode":"","headers":{},"x":680,"y":380,"wires":[]},{"id":"37aac63e.12bf7a","type":"template","z":"1f38d152.158887","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<html>\n<head><title>List of the patients</title></head>\n<body>\n    <h1>List of patients:</h1>\n<ul>\n{{#payload}}\n<li>{{first_name}} {{name}}</li>\n{{/payload}}\n</ul>\n</body>\n</html>","output":"str","x":640,"y":280,"wires":[["ccdface3.c684a8","3c3f7b71.ccafdc"]]},{"id":"3c3f7b71.ccafdc","type":"debug","z":"1f38d152.158887","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":720,"y":200,"wires":[]},{"id":"6d515c03.0cfa34","type":"MySQLdatabase","z":"","host":"127.0.0.1","port":"3306","db":"medizininformatik","tz":""}]
