From 11d4bcc54f4948cb3c171fe7e8d832b93f0231e2 Mon Sep 17 00:00:00 2001 From: Stefan Kohler Date: Wed, 5 May 2021 10:38:35 +0200 Subject: [PATCH 1/3] Updated routes to include body in CreateWebhookForWorkspace --- src/plugins/register-api-endpoints/routes.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/register-api-endpoints/routes.json b/src/plugins/register-api-endpoints/routes.json index 56b585d..1d4d4c9 100644 --- a/src/plugins/register-api-endpoints/routes.json +++ b/src/plugins/register-api-endpoints/routes.json @@ -5657,6 +5657,11 @@ "createWebhookForWorkspace": { "method": "POST", "params": { + "_body": { + "required": true, + "schema": "WebhookSubscription", + "type": "any" + }, "workspace": { "required": true, "type": "string" From dee9e384d6e463004350f221d2c37ab1a434d602 Mon Sep 17 00:00:00 2001 From: Stefan Kohler Date: Wed, 5 May 2021 10:43:20 +0200 Subject: [PATCH 2/3] Updated routes to include body in UpdateWebhookForWorkspace --- src/plugins/register-api-endpoints/routes.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/register-api-endpoints/routes.json b/src/plugins/register-api-endpoints/routes.json index 1d4d4c9..f2a41cf 100644 --- a/src/plugins/register-api-endpoints/routes.json +++ b/src/plugins/register-api-endpoints/routes.json @@ -5879,6 +5879,11 @@ "updateWebhookForWorkspace": { "method": "PUT", "params": { + "_body": { + "required": true, + "schema": "WebhookSubscription", + "type": "any" + }, "uid": { "required": true, "type": "string" From f9dee0fdf589fc2b363d3461961e6b1577779b68 Mon Sep 17 00:00:00 2001 From: Stefan Kohler Date: Tue, 18 May 2021 09:31:36 +0200 Subject: [PATCH 3/3] Added body to POST, to create and PUT, to update a workspace webhook. --- specification/extras/paths.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/specification/extras/paths.json b/specification/extras/paths.json index a283838..1dbc4ae 100644 --- a/specification/extras/paths.json +++ b/specification/extras/paths.json @@ -248,5 +248,33 @@ } } } + }, + "/workspaces/{workspace}/hooks": { + "post": { + "parameters": [ + { + "in": "body", + "name": "_body", + "required": true, + "schema": { + "$ref": "#/definitions/webhook_subscription" + } + } + ] + } + }, + "/workspaces/{workspace}/hooks/{uid}": { + "put": { + "parameters": [ + { + "in": "body", + "name": "_body", + "required": true, + "schema": { + "$ref": "#/definitions/webhook_subscription" + } + } + ] + } } }