-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.yaml
68 lines (65 loc) · 2.06 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
overlay: 1.0.0
info:
title: Speakeasy overlay for epilot product API
version: 0.0.1
actions:
- target: $
update:
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
# Price
- target: $["paths"]["/v1/price"]["post"]
update:
x-speakeasy-entity-operation: Price#create
- target: $["paths"]["/v1/price/{priceId}"]["get"]
update:
x-speakeasy-entity-operation: Price#get
- target: $["paths"]["/v1/price/{priceId}"]["patch"]
update:
x-speakeasy-entity-operation: Price#update
- target: $["paths"]["/v1/price/{priceId}"]["delete"]
update:
x-speakeasy-entity-operation: Price#delete
- target: $["components"]["parameters"]["PriceIdPathParam"]
update:
x-speakeasy-match: id
# Tax
- target: $["paths"]["/v1/tax"]["post"]
update:
x-speakeasy-entity-operation: Tax#create
- target: $["paths"]["/v1/tax/{taxId}"]["get"]
update:
x-speakeasy-entity-operation: Tax#get
- target: $["paths"]["/v1/tax/{taxId}"]["patch"]
update:
x-speakeasy-entity-operation: Tax#update
- target: $["paths"]["/v1/tax/{taxId}"]["delete"]
update:
x-speakeasy-entity-operation: Tax#delete
- target: $["components"]["parameters"]["TaxIdPathParam"]
update:
x-speakeasy-match: id
# Product
- target: $["paths"]["/v1/product"]["post"]
update:
x-speakeasy-entity-operation: Product#create
- target: $["paths"]["/v1/product/{productId}"]["get"]
update:
x-speakeasy-entity-operation: Product#get
- target: $["paths"]["/v1/product/{productId}"]["patch"]
update:
x-speakeasy-entity-operation: Product#update
- target: $["paths"]["/v1/product/{productId}"]["delete"]
update:
x-speakeasy-entity-operation: Product#delete
- target: $["components"]["parameters"]["ProductIdPathParam"]
update:
x-speakeasy-match: id