|
|
@@ -0,0 +1,18 @@
|
|
|
+{
|
|
|
+ "name": "post-trigger-body-passthrough",
|
|
|
+ "nodes": [
|
|
|
+ {"id": "n1", "name": "Webhook", "type": "post-trigger", "position": {"x": 0, "y": 0}, "config": {}},
|
|
|
+ {"id": "n2", "name": "Respond", "type": "respond-to-webhook", "position": {"x": 0, "y": 100},
|
|
|
+ "config": {"status": 200, "bodySource": "input", "bodyField": "data.body"}}
|
|
|
+ ],
|
|
|
+ "connections": [
|
|
|
+ {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}
|
|
|
+ ],
|
|
|
+ "http": {
|
|
|
+ "method": "POST",
|
|
|
+ "path": "/webhook/{workflowId}",
|
|
|
+ "body": {"greeting": "hello-from-test"},
|
|
|
+ "expectStatus": 200,
|
|
|
+ "expectBodyContains": ["\"greeting\":\"hello-from-test\""]
|
|
|
+ }
|
|
|
+}
|