|
| 1 | +{ |
| 2 | + "uuid": "1fe22148-65b8-4c7d-ba28-1e567696cef0", |
| 3 | + "lastMigration": 33, |
| 4 | + "name": "Simulate Webhook Tutorial", |
| 5 | + "endpointPrefix": "", |
| 6 | + "latency": 0, |
| 7 | + "port": 3000, |
| 8 | + "hostname": "", |
| 9 | + "folders": [], |
| 10 | + "routes": [ |
| 11 | + { |
| 12 | + "uuid": "b6e676ae-4bde-4988-aac7-664afdccf740", |
| 13 | + "type": "http", |
| 14 | + "documentation": "Create an order", |
| 15 | + "method": "post", |
| 16 | + "endpoint": "orders", |
| 17 | + "responses": [ |
| 18 | + { |
| 19 | + "uuid": "c2116747-38d2-449e-913b-a8787211edb8", |
| 20 | + "body": "{{setData 'push' 'orders' null (object orderId='123456' status='pending')}}\r\n\r\n{\r\n \"orderId\": \"123456\",\r\n \"status\": \"pending\"\r\n}", |
| 21 | + "latency": 0, |
| 22 | + "statusCode": 200, |
| 23 | + "label": "", |
| 24 | + "headers": [], |
| 25 | + "bodyType": "INLINE", |
| 26 | + "filePath": "", |
| 27 | + "databucketID": "", |
| 28 | + "sendFileAsBody": false, |
| 29 | + "rules": [], |
| 30 | + "rulesOperator": "OR", |
| 31 | + "disableTemplating": false, |
| 32 | + "fallbackTo404": false, |
| 33 | + "default": true, |
| 34 | + "crudKey": "id", |
| 35 | + "callbacks": [ |
| 36 | + { |
| 37 | + "uuid": "d9efda74-16ed-462e-843c-f1d718356640", |
| 38 | + "latency": 10000 |
| 39 | + } |
| 40 | + ] |
| 41 | + } |
| 42 | + ], |
| 43 | + "responseMode": null, |
| 44 | + "streamingMode": null, |
| 45 | + "streamingInterval": 0 |
| 46 | + }, |
| 47 | + { |
| 48 | + "uuid": "f472515e-d63a-47a5-9367-0764675921a2", |
| 49 | + "type": "http", |
| 50 | + "documentation": "Get all orders", |
| 51 | + "method": "get", |
| 52 | + "endpoint": "orders", |
| 53 | + "responses": [ |
| 54 | + { |
| 55 | + "uuid": "21a31486-9037-4563-8f33-cddccd2d2cb0", |
| 56 | + "body": "{{data 'orders'}}", |
| 57 | + "latency": 0, |
| 58 | + "statusCode": 200, |
| 59 | + "label": "", |
| 60 | + "headers": [], |
| 61 | + "bodyType": "INLINE", |
| 62 | + "filePath": "", |
| 63 | + "databucketID": "", |
| 64 | + "sendFileAsBody": false, |
| 65 | + "rules": [], |
| 66 | + "rulesOperator": "OR", |
| 67 | + "disableTemplating": false, |
| 68 | + "fallbackTo404": false, |
| 69 | + "default": true, |
| 70 | + "crudKey": "id", |
| 71 | + "callbacks": [] |
| 72 | + } |
| 73 | + ], |
| 74 | + "responseMode": null, |
| 75 | + "streamingMode": null, |
| 76 | + "streamingInterval": 0 |
| 77 | + }, |
| 78 | + { |
| 79 | + "uuid": "83edb0fb-4af3-4557-9a10-e779011ae448", |
| 80 | + "type": "http", |
| 81 | + "documentation": "Update orders", |
| 82 | + "method": "post", |
| 83 | + "endpoint": "webhook", |
| 84 | + "responses": [ |
| 85 | + { |
| 86 | + "uuid": "ee0d6359-c656-4585-9d95-7c166c868ac6", |
| 87 | + "body": "{{setData 'set' 'orders' '0.status' 'paid'}}", |
| 88 | + "latency": 0, |
| 89 | + "statusCode": 200, |
| 90 | + "label": "", |
| 91 | + "headers": [], |
| 92 | + "bodyType": "INLINE", |
| 93 | + "filePath": "", |
| 94 | + "databucketID": "", |
| 95 | + "sendFileAsBody": false, |
| 96 | + "rules": [], |
| 97 | + "rulesOperator": "OR", |
| 98 | + "disableTemplating": false, |
| 99 | + "fallbackTo404": false, |
| 100 | + "default": true, |
| 101 | + "crudKey": "id", |
| 102 | + "callbacks": [] |
| 103 | + } |
| 104 | + ], |
| 105 | + "responseMode": null, |
| 106 | + "streamingMode": null, |
| 107 | + "streamingInterval": 0 |
| 108 | + } |
| 109 | + ], |
| 110 | + "rootChildren": [ |
| 111 | + { |
| 112 | + "type": "route", |
| 113 | + "uuid": "b6e676ae-4bde-4988-aac7-664afdccf740" |
| 114 | + }, |
| 115 | + { |
| 116 | + "type": "route", |
| 117 | + "uuid": "f472515e-d63a-47a5-9367-0764675921a2" |
| 118 | + }, |
| 119 | + { |
| 120 | + "type": "route", |
| 121 | + "uuid": "83edb0fb-4af3-4557-9a10-e779011ae448" |
| 122 | + } |
| 123 | + ], |
| 124 | + "proxyMode": false, |
| 125 | + "proxyHost": "", |
| 126 | + "proxyRemovePrefix": false, |
| 127 | + "tlsOptions": { |
| 128 | + "enabled": false, |
| 129 | + "type": "CERT", |
| 130 | + "pfxPath": "", |
| 131 | + "certPath": "", |
| 132 | + "keyPath": "", |
| 133 | + "caPath": "", |
| 134 | + "passphrase": "" |
| 135 | + }, |
| 136 | + "cors": true, |
| 137 | + "headers": [ |
| 138 | + { |
| 139 | + "key": "Content-Type", |
| 140 | + "value": "application/json" |
| 141 | + }, |
| 142 | + { |
| 143 | + "key": "Access-Control-Allow-Origin", |
| 144 | + "value": "*" |
| 145 | + }, |
| 146 | + { |
| 147 | + "key": "Access-Control-Allow-Methods", |
| 148 | + "value": "GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS" |
| 149 | + }, |
| 150 | + { |
| 151 | + "key": "Access-Control-Allow-Headers", |
| 152 | + "value": "Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With" |
| 153 | + } |
| 154 | + ], |
| 155 | + "proxyReqHeaders": [ |
| 156 | + { |
| 157 | + "key": "", |
| 158 | + "value": "" |
| 159 | + } |
| 160 | + ], |
| 161 | + "proxyResHeaders": [ |
| 162 | + { |
| 163 | + "key": "", |
| 164 | + "value": "" |
| 165 | + } |
| 166 | + ], |
| 167 | + "data": [ |
| 168 | + { |
| 169 | + "uuid": "05966275-3dab-4d54-9499-5885e97b1c7a", |
| 170 | + "id": "ah7p", |
| 171 | + "name": "orders", |
| 172 | + "documentation": "", |
| 173 | + "value": "[\n]" |
| 174 | + } |
| 175 | + ], |
| 176 | + "callbacks": [ |
| 177 | + { |
| 178 | + "uuid": "d9efda74-16ed-462e-843c-f1d718356640", |
| 179 | + "id": "940q", |
| 180 | + "uri": "http://localhost:3006/webhook", |
| 181 | + "name": "Payment processing", |
| 182 | + "documentation": "", |
| 183 | + "method": "post", |
| 184 | + "headers": [], |
| 185 | + "bodyType": "INLINE", |
| 186 | + "body": "", |
| 187 | + "databucketID": "", |
| 188 | + "filePath": "", |
| 189 | + "sendFileAsBody": true |
| 190 | + } |
| 191 | + ] |
| 192 | +} |
0 commit comments