-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.yaml
43 lines (43 loc) · 1.43 KB
/
overlay.yaml
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
overlay: 1.0.0
info:
title: Overlay epilot webhook to make a webhook resource
version: 0.0.1
actions:
- target: $
update:
servers:
- url: https://webhooks.sls.epilot.io
x-speakeasy-retries:
strategy: backoff
backoff:
initialInterval: 5000 # 5 seconds
maxInterval: 60000 # 60 seconds
maxElapsedTime: 3600000 # 5 minutes
exponent: 1.5
statusCodes:
- 5XX
retryConnectionErrors: true
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["get"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["get"]
update:
x-speakeasy-entity-operation: Webhook#get
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["delete"]
update:
x-speakeasy-entity-operation: Webhook#delete
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["delete"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["put"]
update:
x-speakeasy-entity-operation: Webhook#update
- target: $["paths"]["/v1/webhooks/configs/{configId}"]["put"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/webhooks/configs"]["post"]
update:
x-speakeasy-entity-operation: Webhook#create
- target: $["components"]["schemas"]["WebhookConfig"]
update:
x-speakeasy-entity: Webhook