Alx Dark
12/01/2023, 3:01 PM{
"mappings": [
{
"request": {
"method": "DELETE",
"urlPathTemplate": "/path/{tn}",
"pathParameters": {
"tn": {
"matches": "[0-9]+"
}
}
},
"serveEventListeners": [
{
"name": "webhook",
"parameters": {
"method": "POST",
"url": "/webhook/path",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"tn\":\"{{tn}}\",\"timestamp\":\"{{now}}\"}}"
}
}
]
}
]
}
If the request is the only variable passed into the webhook templating system, then I guess I'm hoping there's something like originalRequest.parameters
that I can refer to in order to get at that variable. (btw I'm aware that I can get at a path element via originalRequest.path.[#]
but I that's somewhat fragile and hard for others to follow.) Thanks in advance for any help on this!Tom
12/01/2023, 4:20 PM<http://originalRequest.path.tn|originalRequest.path.tn>
but I’m not sure why you’d consider this any more fragile than if it was under a parameters
object instead?Alx Dark
12/01/2023, 4:36 PMAlx Dark
12/01/2023, 4:37 PMpath
object...that makes perfect sense though.Tom
12/01/2023, 4:43 PMAlx Dark
12/01/2023, 7:01 PMTom
12/06/2023, 8:53 PM