[{"id":"3d8e42ae.38824e","type":"function","z":"e5a7eb5a.fa7a68","name":"","func":"// msg.payload[1] = {\n// \"id\": \"get-utc-time-now\",\n// \"name\": \"Get the current time in UTC\",\n// \"description\": \"Get the current time in UTC\",\n// \"request\": \"{{apiBaseUrl}}/utc/now?a=a\"\n// }\n// {\n// \"INF_ID\": \"OA-10004\",\n// \"INF_NM\": \"서울시 강서구 모범음식점 취소 현황\",\n// \"API_SERVICE_NM\": \"GangseoModelRestaurantCancel\",\n// \"REQ_URL\": \"http://openAPI.gangseo.seoul.kr:8088\",\n// \"REQ_INFO\": \"/인증키/요청타입(xml,xls,json)/GangseoModelRestaurantCancel/요청위치(정수)/요청종료위치(정수)\",\n// \"EXM_NM\": \"강서구 모범음식점(취소현황) 조회\",\n// \"EXM_URL\": \"http://openAPI.gangseo.seoul.kr:8088/sample/xml/GangseoModelRestaurantCancel/1/5/\",\n// \"META_URL\": \"http://data.gangseo.go.kr/openinf/openapiview.jsp?infId=OA-10004\"\n// }\nmsg2 = {};\n// node.error(msg.payload['SearchOpenAPIService'].row);\nmsg2.payload = [];\nfor(var i in msg.payload['SearchOpenAPIService'].row){\n msg2.payload[i] = {};\n msg2.payload[i].id = msg.payload['SearchOpenAPIService'].row[i].INF_ID;\n msg2.payload[i].name = msg.payload['SearchOpenAPIService'].row[i].INF_NM;\n msg2.payload[i]['description'] = msg.payload['SearchOpenAPIService'].row[i].REQ_INFO;\n msg2.payload[i]['request'] = msg.payload['SearchOpenAPIService'].row[i].EXM_URL;\n}\n\nreturn msg2;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":300,"y":200,"wires":[["302455b7.c3374a"]]},{"id":"e5b035d5.b5f018","type":"inject","z":"e5a7eb5a.fa7a68","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":160,"wires":[["55014c4f.14e674"]]},{"id":"55014c4f.14e674","type":"function","z":"e5a7eb5a.fa7a68","name":"","func":"// 서울시 열린데이터광장 Open API 현황\n\nmsg.apikey = '';\nmsg.apiname = 'SearchOpenAPIService';\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":160,"wires":[["bf54de20.0caab"]]},{"id":"bf54de20.0caab","type":"http request","z":"e5a7eb5a.fa7a68","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://openapi.seoul.go.kr:8088/{{{apikey}}}/json/{{{apiname}}}/1/1000/","tls":"","persist":false,"proxy":"","authType":"","x":490,"y":160,"wires":[["3d8e42ae.38824e"]]},{"id":"9d94200a.d336f","type":"debug","z":"e5a7eb5a.fa7a68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":200,"wires":[]},{"id":"b0bcb731.4b94b8","type":"file","z":"e5a7eb5a.fa7a68","name":"","filename":"/download/collection.json","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":830,"y":240,"wires":[["5be13aee.379594"]]},{"id":"5be13aee.379594","type":"debug","z":"e5a7eb5a.fa7a68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1030,"y":240,"wires":[]},{"id":"302455b7.c3374a","type":"postman","z":"e5a7eb5a.fa7a68","name":"Payload to Postman Collection JSON","apiBaseUrl":"http://openAPI.gangseo.seoul.kr:8088","collectionName":"openapi collection","version":"0.0.1","x":530,"y":200,"wires":[["9d94200a.d336f","b0bcb731.4b94b8"]]}]