fix(events): route webhooks by source UUID (#2127)
This commit is contained in:
16 files changed
+90
-176
No files matched your search
+4
-47
@@ -1246,9 +1246,6 @@ components:
|
||||
- hmac
|
||||
- none
|
||||
type: string
|
||||
webhook_path:
|
||||
description: Lowercase letters, digits and hyphens; the webhook URL ends in it. Defaults to the label
|
||||
type: string
|
||||
required:
|
||||
- label
|
||||
- connector
|
||||
@@ -1857,15 +1854,16 @@ components:
|
||||
type: string
|
||||
token_set:
|
||||
type: boolean
|
||||
verification:
|
||||
url:
|
||||
description: The webhook URL identified by the source UUID
|
||||
type: string
|
||||
webhook_path:
|
||||
verification:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- scope
|
||||
- label
|
||||
- webhook_path
|
||||
- url
|
||||
- connector
|
||||
- key_fields
|
||||
- token_set
|
||||
@@ -4812,15 +4810,6 @@ components:
|
||||
- completion_tokens
|
||||
- total_tokens
|
||||
type: object
|
||||
WebhookPathInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
path:
|
||||
description: Lowercase letters, digits and hyphens; the webhook URL ends in it. Senders must post to the new address.
|
||||
type: string
|
||||
required:
|
||||
- path
|
||||
type: object
|
||||
securitySchemes:
|
||||
bearer:
|
||||
description: A personal API token, or the bootstrap admin token
|
||||
@@ -9323,38 +9312,6 @@ paths:
|
||||
summary: Require an HMAC signature, or ask to take unsigned deliveries
|
||||
tags:
|
||||
- Events
|
||||
/api/sources/{id}/webhook-path:
|
||||
put:
|
||||
operationId: set-source-webhook-path
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema:
|
||||
format: uuid
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/WebhookPathInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/EventsSourceView"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Move the address a source receives deliveries at
|
||||
tags:
|
||||
- Events
|
||||
/api/stream:
|
||||
get:
|
||||
operationId: stream-dashboard
|
||||
|
||||
Reference in new issue
Block a user