mirror of
https://github.com/adnanh/webhook.git
synced 2025-07-04 10:18:31 +00:00
wip
This commit is contained in:
parent
d4dacd6f8e
commit
4f1089495d
7 changed files with 123 additions and 73 deletions
|
@ -32,7 +32,7 @@ Hooks are defined as objects in the JSON or YAML hooks configuration file. Pleas
|
|||
* `query` - object with query parameters and their respective values
|
||||
* `headers` - object with headers and their respective values
|
||||
* `base64EncodedBody` - base64 encoded request body
|
||||
* Output of this command __MUST__ be valid JSON string which will be parsed by the webhook and accessible using the `context` as source when referencing values.
|
||||
* Output of this command __MUST__ be valid JSON string which will be parsed by the webhook and accessible using the `pre-hook` as source when referencing values.
|
||||
|
||||
## Examples
|
||||
Check out [Hook examples page](Hook-Examples.md) for more complex examples of hooks.
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Referencing request values
|
||||
There are four types of request values:
|
||||
|
||||
1. Context values
|
||||
1. Pre-hook values
|
||||
These are the values provided by the `pre-hook-command` output.
|
||||
|
||||
```json
|
||||
{
|
||||
"source": "context",
|
||||
"source": "pre-hook",
|
||||
"name": "parameter-name"
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue