Add DELETE, PATCH and PUT request support to Webhooks

This commit is contained in:
Jan Oberhauser
2022-02-20 10:30:01 +01:00
parent ec5bfaf895
commit 9a06d0fffc
5 changed files with 103 additions and 249 deletions

View File

@@ -120,6 +120,10 @@ export class Webhook implements INodeType {
name: 'httpMethod',
type: 'options',
options: [
{
name: 'DELETE',
value: 'DELETE',
},
{
name: 'GET',
value: 'GET',
@@ -128,10 +132,18 @@ export class Webhook implements INodeType {
name: 'HEAD',
value: 'HEAD',
},
{
name: 'PATCH',
value: 'PATCH',
},
{
name: 'POST',
value: 'POST',
},
{
name: 'PUT',
value: 'PUT',
},
],
default: 'GET',
description: 'The HTTP method to listen to.',
@@ -265,6 +277,8 @@ export class Webhook implements INodeType {
displayOptions: {
show: {
'/httpMethod': [
'PATCH',
'PUT',
'POST',
],
},