Created
February 1, 2023 21:45
-
-
Save zeushammer/67d8d3385499d6e8d124d1d00b9e2ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "699af9de.c896a8", | |
"type": "location", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"location": "api-request-response", | |
"target": "", | |
"info": "" | |
}, | |
"is_user_parameter": {}, | |
"name": "Location", | |
"location": "api-request-response", | |
"target": "", | |
"info": "", | |
"x": 190, | |
"y": 120, | |
"wires": [] | |
}, | |
{ | |
"id": "1a8e1e24.cc17c2", | |
"type": "api_response", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"response": "{{payload.payload}}", | |
"status": "200", | |
"topic": "" | |
}, | |
"is_user_parameter": { | |
"iup_response": false, | |
"iup_status": false, | |
"iup_topic": false | |
}, | |
"name": "APISuccessResponse", | |
"response": "{{payload.payload}}", | |
"iup_response": false, | |
"status": "200", | |
"iup_status": false, | |
"topic": "", | |
"iup_topic": false, | |
"x": 920, | |
"y": 100, | |
"wires": [ | |
[ | |
"11252dc1.55871a:0" | |
], | |
[ | |
"7f722c07.9322f4:0" | |
] | |
] | |
}, | |
{ | |
"id": "f7d19916.91647", | |
"type": "api_request", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"sat_enabled": "false", | |
"sat_capabilities": "[\"x1:xrs:gears:masheens:*:*\"]", | |
"method": "POST", | |
"path": "/echo", | |
"headers": "", | |
"queryParams": "", | |
"payload": "" | |
}, | |
"is_user_parameter": { | |
"iup_sat_enabled": false, | |
"iup_sat_capabilities": false, | |
"iup_method": false, | |
"iup_path": false, | |
"iup_headers": false, | |
"iup_queryParams": false, | |
"iup_payload": false | |
}, | |
"name": "APIRequest", | |
"sat_enabled": "false", | |
"iup_sat_enabled": false, | |
"sat_capabilities": "[\"x1:xrs:gears:masheens:*:*\"]", | |
"iup_sat_capabilities": false, | |
"method": "POST", | |
"iup_method": false, | |
"path": "/echo", | |
"iup_path": false, | |
"headers": "", | |
"iup_headers": false, | |
"queryParams": "", | |
"iup_queryParams": false, | |
"payload": "", | |
"iup_payload": false, | |
"x": 170, | |
"y": 260, | |
"wires": [ | |
[ | |
"4012adf7.de95e4:0" | |
], | |
[ | |
"5adc439c.c9bfbc:0" | |
] | |
] | |
}, | |
{ | |
"id": "bc266fed.b535e", | |
"type": "api_response", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"response": "{{payload.payload}}", | |
"status": "500", | |
"topic": "" | |
}, | |
"is_user_parameter": { | |
"iup_response": false, | |
"iup_status": false, | |
"iup_topic": false | |
}, | |
"name": "APIErrorResponse", | |
"response": "{{payload.payload}}", | |
"iup_response": false, | |
"status": "500", | |
"iup_status": false, | |
"topic": "", | |
"iup_topic": false, | |
"x": 930, | |
"y": 360, | |
"wires": [ | |
[ | |
"11252dc1.55871a:0" | |
], | |
[ | |
"7f722c07.9322f4:0" | |
] | |
] | |
}, | |
{ | |
"id": "11252dc1.55871a", | |
"type": "debugfn", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"breakpoint": "false" | |
}, | |
"is_user_parameter": { | |
"iup_breakpoint": false | |
}, | |
"name": "Debug", | |
"breakpoint": "false", | |
"iup_breakpoint": false, | |
"x": 1230, | |
"y": 160, | |
"wires": [ | |
[], | |
[] | |
] | |
}, | |
{ | |
"id": "2e0d6faf.3c4f7", | |
"type": "generic_trigger", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"event_pattern": "{\"id\":\"*\", \"count\":\"*\"}", | |
"exact_match": "false" | |
}, | |
"is_user_parameter": { | |
"iup_event_pattern": false, | |
"iup_exact_match": false | |
}, | |
"name": "RequestPayloadTrigger", | |
"event_pattern": "{\"id\":\"*\", \"count\":\"*\"}", | |
"iup_event_pattern": false, | |
"exact_match": "false", | |
"iup_exact_match": false, | |
"x": 280, | |
"y": 580, | |
"wires": [ | |
[ | |
"cd21a09d.897508:0" | |
], | |
[] | |
] | |
}, | |
{ | |
"id": "cd21a09d.897508", | |
"type": "http", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"endpoint": "https://qa.gears.comcast.com/api-service/partners/comcast/applications/demo/echo?debug=true", | |
"method": "POST", | |
"auth_id": "", | |
"auth_account_id": "", | |
"headers": "", | |
"body": "{{payload}}", | |
"retries": "0", | |
"timeout": "5s", | |
"delay": "3s", | |
"deadline": "10s", | |
"include_response": "true", | |
"do_not_evaluate": "[]", | |
"filter_path": "", | |
"keeper_path": "" | |
}, | |
"is_user_parameter": { | |
"iup_endpoint": false, | |
"iup_method": false, | |
"iup_auth_id": false, | |
"iup_auth_account_id": false, | |
"iup_headers": false, | |
"iup_body": false, | |
"iup_retries": false, | |
"iup_timeout": false, | |
"iup_delay": false, | |
"iup_deadline": false, | |
"iup_include_response": false, | |
"iup_do_not_evaluate": false, | |
"iup_filter_path": false, | |
"iup_keeper_path": false | |
}, | |
"name": "HTTP", | |
"endpoint": "https://qa.gears.comcast.com/api-service/partners/comcast/applications/demo/echo?debug=true", | |
"iup_endpoint": false, | |
"method": "POST", | |
"iup_method": false, | |
"auth_id": "", | |
"iup_auth_id": false, | |
"auth_account_id": "", | |
"iup_auth_account_id": false, | |
"headers": "", | |
"iup_headers": false, | |
"body": "{{payload}}", | |
"iup_body": false, | |
"retries": "0", | |
"iup_retries": false, | |
"timeout": "5s", | |
"iup_timeout": false, | |
"delay": "3s", | |
"iup_delay": false, | |
"deadline": "10s", | |
"iup_deadline": false, | |
"include_response": "true", | |
"iup_include_response": false, | |
"do_not_evaluate": "[]", | |
"iup_do_not_evaluate": false, | |
"filter_path": "", | |
"iup_filter_path": false, | |
"keeper_path": "", | |
"iup_keeper_path": false, | |
"x": 550, | |
"y": 540, | |
"wires": [ | |
[ | |
"6aefdd3e.cfdf1c:0" | |
], | |
[ | |
"45a0bb34.e74fc4:0" | |
] | |
] | |
}, | |
{ | |
"id": "45a0bb34.e74fc4", | |
"type": "debugfn", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"breakpoint": "false" | |
}, | |
"is_user_parameter": { | |
"iup_breakpoint": false | |
}, | |
"name": "DebugErr", | |
"breakpoint": "false", | |
"iup_breakpoint": false, | |
"x": 880, | |
"y": 700, | |
"wires": [ | |
[], | |
[] | |
] | |
}, | |
{ | |
"id": "efed0d93.59b13", | |
"type": "generic_event", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"topic": "", | |
"payload": "{\"id\":123,\"message\":\"this is a test\",\"count\":5}", | |
"payloadType": "json" | |
}, | |
"is_user_parameter": {}, | |
"name": "request_payload", | |
"topic": "", | |
"payload": "{\"id\":123,\"message\":\"this is a test\",\"count\":5}", | |
"payloadType": "json", | |
"x": 240, | |
"y": 720, | |
"wires": [] | |
}, | |
{ | |
"id": "4012adf7.de95e4", | |
"type": "check_condition", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"condition": "payload.payload.count >= 0" | |
}, | |
"is_user_parameter": { | |
"iup_condition": false | |
}, | |
"name": "CheckCondition", | |
"condition": "payload.payload.count >= 0", | |
"iup_condition": false, | |
"x": 480, | |
"y": 160, | |
"wires": [ | |
[ | |
"f50635fb.3168b8:0" | |
], | |
[ | |
"5adc439c.c9bfbc:0" | |
], | |
[ | |
"5adc439c.c9bfbc:0" | |
] | |
] | |
}, | |
{ | |
"id": "f50635fb.3168b8", | |
"type": "calculate", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"formula": "payload.payload.countSquared = payload.payload.count*payload.payload.count;" | |
}, | |
"is_user_parameter": { | |
"iup_formula": false | |
}, | |
"name": "Calculate", | |
"formula": "payload.payload.countSquared = payload.payload.count*payload.payload.count;", | |
"iup_formula": false, | |
"x": 720, | |
"y": 160, | |
"wires": [ | |
[ | |
"1a8e1e24.cc17c2:0" | |
], | |
[] | |
] | |
}, | |
{ | |
"id": "5adc439c.c9bfbc", | |
"type": "calculate", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"formula": "payload.payload.error = \"invalid payload in API request\";" | |
}, | |
"is_user_parameter": { | |
"iup_formula": false | |
}, | |
"name": "HandleError", | |
"formula": "payload.payload.error = \"invalid payload in API request\";", | |
"iup_formula": false, | |
"x": 670, | |
"y": 300, | |
"wires": [ | |
[ | |
"bc266fed.b535e:0" | |
], | |
[ | |
"7f722c07.9322f4:0", | |
"bc266fed.b535e:0" | |
] | |
] | |
}, | |
{ | |
"id": "7f722c07.9322f4", | |
"type": "debugfn", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"breakpoint": "false" | |
}, | |
"is_user_parameter": { | |
"iup_breakpoint": false | |
}, | |
"name": "DebugErr", | |
"breakpoint": "false", | |
"iup_breakpoint": false, | |
"x": 1240, | |
"y": 280, | |
"wires": [ | |
[], | |
[] | |
] | |
}, | |
{ | |
"id": "98c2e11c.e89b08", | |
"type": "generic_event", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"topic": "", | |
"payload": "{\"id\":123,\"message\":\"this is a test\",\"count\":-2}", | |
"payloadType": "json" | |
}, | |
"is_user_parameter": {}, | |
"name": "invalid_payload", | |
"topic": "", | |
"payload": "{\"id\":123,\"message\":\"this is a test\",\"count\":-2}", | |
"payloadType": "json", | |
"x": 240, | |
"y": 780, | |
"wires": [] | |
}, | |
{ | |
"id": "a648f690.481ee8", | |
"type": "comment", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"comment": "curl -X POST https://qa.gears.comcast.com/api-service/partners/comcast/applications/demo/echo?debug=true --data \"{\\\"id\\\": 123,\\\"message\\\": \\\"this is a test\\\",\\\"count\\\": 5}\"" | |
}, | |
"is_user_parameter": { | |
"iup_comment": false | |
}, | |
"name": "curl", | |
"comment": "curl -X POST https://qa.gears.comcast.com/api-service/partners/comcast/applications/demo/echo?debug=true --data \"{\\\"id\\\": 123,\\\"message\\\": \\\"this is a test\\\",\\\"count\\\": 5}\"", | |
"iup_comment": false, | |
"x": 530, | |
"y": 680, | |
"wires": [] | |
}, | |
{ | |
"id": "6aefdd3e.cfdf1c", | |
"type": "debugfn", | |
"z": "22a7d869.b5f338", | |
"parameters": { | |
"breakpoint": "false" | |
}, | |
"is_user_parameter": { | |
"iup_breakpoint": false | |
}, | |
"name": "DebugResponse", | |
"breakpoint": "false", | |
"iup_breakpoint": false, | |
"x": 880, | |
"y": 540, | |
"wires": [ | |
[], | |
[] | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment