hooks.json: add hook delivery-webhack
This commit is contained in:
parent
6ed8bba74d
commit
43d0ed6eee
28
hooks.json
28
hooks.json
@ -20,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "delivery-test-webhack",
|
"id": "delivery-test-webhack",
|
||||||
"execute-command": "~/go_dev/src/github.com/jaypee-f/webhook/process_webhook.sh",
|
"execute-command": "/Users/kate.manson/go_dev/src/github.com/jaypee-f/webhook/process_webhook.sh",
|
||||||
"command-working-directory": "/tmp",
|
"command-working-directory": "/tmp",
|
||||||
"success-http-response-code": 200,
|
"success-http-response-code": 200,
|
||||||
"include-command-output-in-response": true,
|
"include-command-output-in-response": true,
|
||||||
@ -39,5 +39,31 @@
|
|||||||
"value": "application/json"
|
"value": "application/json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "delivery-webhack",
|
||||||
|
"execute-command": "/Users/kate.manson/go_dev/src/github.com/iZettle/hackweek-mse-edi-delivery/process_webhook.sh",
|
||||||
|
"command-working-directory": "/Users/kate.manson/go_dev/src/github.com/iZettle/hackweek-mse-edi-delivery/webhook/delivery_data",
|
||||||
|
"success-http-response-code": 201,
|
||||||
|
"include-command-output-in-response": true,
|
||||||
|
"pass-arguments-to-command": [
|
||||||
|
{
|
||||||
|
"source": "payload",
|
||||||
|
"name": "location"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "entire-payload",
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"response-headers": [
|
||||||
|
{
|
||||||
|
"name": "Access-Control-Allow-Origin",
|
||||||
|
"value": "*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Content-Type",
|
||||||
|
"value": "application/json"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user