-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhook-receiver-example.yaml
More file actions
57 lines (57 loc) · 2.15 KB
/
webhook-receiver-example.yaml
File metadata and controls
57 lines (57 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
openapi: 3.0.0
info:
title: Example XENON webhook receiver
contact:
name: gridX
url: https://www.gridx.ai/module/api
email: developer-community@gridx.de
license:
name: All rights reserved.
url: https://www.gridx.ai/
version: v1.0.0
description: |-
This is an example webhook receiver for XENON.
servers:
- url: https://your.domain
description: production
variables: {}
- url: https://your.staging.domain
description: staging
variables: {}
paths:
/hooks/xenon:
description: The path is just an example. Pick whatever path suits you best.
post:
operationId: processXenonWebhookEvent
description: Processes a XENON webhook event.
parameters:
- $ref: 'webhook-events.yaml#/components/parameters/XSignature'
requestBody:
$ref: 'webhook-events.yaml#/components/requestBodies/WebhookEvent'
responses:
'200':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventSuccess'
'201':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventSuccess'
'202':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventSuccess'
'204':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventSuccess'
'401':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventUnauthenticated'
'410':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventReceiverGone'
'408':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
'429':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
'500':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
'502':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
'503':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
'504':
$ref: 'webhook-events.yaml#/components/responses/WebhookEventTransientError'
default:
$ref: 'webhook-events.yaml#/components/responses/WebhookEventPermanentError'