forked from fwang/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstainless.yml
More file actions
80 lines (78 loc) · 1.65 KB
/
stainless.yml
File metadata and controls
80 lines (78 loc) · 1.65 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# yaml-language-server: $schema=https://app.stainlessapi.com/config.schema.json
organization:
name: terminal
docs: https://docs.terminal.com
contact: dev@terminal.com
github_org: terminaldotshop
resources:
$shared:
models:
address: Address
card: Card
cart: Cart
order: Order
product: Product
productVariant: ProductVariant
shipping: UserShipping
user: User
product:
methods:
list: get /product
user:
methods:
me: get /user/me
update: put /user/me
subresources:
shipping:
methods:
list: get /user/shipping
create: post /user/shipping
delete: delete /user/shipping/{id}
card:
methods:
list: get /card
create: post /card
cart:
methods:
list: get /cart
setItem: put /cart/item
setShipping: put /cart/shipping
setCard: put /cart/card
order:
methods:
get: get /order/{id}
create: post /order
package:
node:
name: "@terminal/sdk"
repo: terminal-sdk-js
skip: false
go:
name: 'terminal'
repo: terminal-sdk-go
skip: false
settings:
license: Apache-2.0
client_settings:
opts:
bearer_token:
type: string
auth:
security_scheme: Bearer
read_env: TERMINAL_BEARER_TOKEN
environments:
production: https://openapi.terminal.shop/
dev: https://openapi.dev.terminal.shop/
query_settings:
nested_format: brackets
array_format: comma
readme:
example_requests:
default:
type: request
endpoint: get /product
params: &ref_0 {}
headline:
type: request
endpoint: get /product
params: *ref_0