How to create endpoint from this.
[{"id":"1cb4ba37.d45666","type":"http in","z":"a6893b09.aee2d8","name":"","url":"/setpoint","method":"get","upload":false,"swaggerDoc":"","x":90,"y":660,"wires":[["82cd602c.e8fbb"]]},{"id":"cab61139.cca8b","type":"http response","z":"a6893b09.aee2d8","name":"","statusCode":"","headers":{},"x":1167,"y":661,"wires":[]},{"id":"908f714b.063278","type":"template","z":"a6893b09.aee2d8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{{{payload}}}","output":"json","x":1037,"y":661,"wires":[["cab61139.cca8b"]]},{"id":"2b13900a.68e1a8","type":"json","z":"a6893b09.aee2d8","name":"","property":"payload","action":"","pretty":false,"x":907,"y":661,"wires":[["908f714b.063278","d487f215.7234f8"]]},{"id":"7bebe530.f78774","type":"modbus-flex-getter","z":"a6893b09.aee2d8","name":"","showStatusActivities":true,"showErrors":true,"logIOActivities":false,"server":"2a6356bf.4c0d8a","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":700,"y":660,"wires":[[],["2b13900a.68e1a8"]]},{"id":"82cd602c.e8fbb","type":"function","z":"a6893b09.aee2d8","name":"17100-17157","func":"var fc=3;\nvar address=17100;\nvar quantity=57;\n//var slave_ip=msg.payload.slave_ip;\n//msg.slave_ip=\"192.168.1.31\";\n\n\nmsg.payload={\n value: msg.payload, \n 'fc': fc,\n 'unitid' : 255,\n 'address': address , \n 'quantity': quantity };\n \n msg.metadata = {\n\t\t\t//user defined\n\t\t\t'deviceType' : 'Radio Model X',\n\t\t\t'deviceId' : 'x001',\n\t\t\t'units' : 'Celcius',\n\t\t\t}\n\t\t\t\n \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":480,"y":660,"wires":[["7bebe530.f78774"]]},{"id":"f7c337a1.07c8e8","type":"inject","z":"a6893b09.aee2d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":290,"y":720,"wires":[["82cd602c.e8fbb"]]},{"id":"d487f215.7234f8","type":"debug","z":"a6893b09.aee2d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1160,"y":740,"wires":[]},{"id":"2a6356bf.4c0d8a","type":"modbus-client","name":"PLC150","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"queueLogEnabled":true,"tcpHost":"10.0.0.150","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true}]