-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhashicups.yaml
138 lines (137 loc) · 3.39 KB
/
hashicups.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
openapi: 3.0.3
info:
description: Example Hashicups through Speakeasy
title: Hashicups
version: 0.0.1
servers:
- url: https://example.com
security:
- APIKey: []
externalDocs:
url: https://docs.speakeasyapi.dev
description: The Speakeasy Platform Documentation
tags:
- name: Order
paths:
/v1/order:
put:
summary: Create an order
x-speakeasy-entity-operation: Order#create,update
operationId: upsertOrder
requestBody:
description: A JSON representation of the Api to upsert
content:
application/json:
schema:
$ref: "#/components/schemas/CreateOrderInput"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Order"
description: OK
tags:
- Order
/v1/order/{orderID}:
get:
summary: Get an order
x-speakeasy-entity-operation: Order#get
operationId: getOrder
parameters:
- description: The ID of the order get.
in: path
name: orderID
x-speakeasy-match: id
required: true
schema:
type: integer
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Order"
description: OK
tags:
- Order
delete:
summary: Delete an order
x-speakeasy-entity-operation: Order#delete
operationId: deleteOrder
parameters:
- description: The ID of the order to delete.
in: path
name: orderID
x-speakeasy-match: id
required: true
schema:
type: integer
responses:
"200":
description: OK
tags:
- Order
components:
schemas:
CreateOrderInput:
description: An input object to creating an order
x-speakeasy-entity: Order
properties:
name:
type: string
description: Product name of the coffee.
teaser:
type: string
description: Fun tagline for the coffee.
description:
type: string
description: Product description of the coffee.
price:
type: number
description: Suggested cost of the coffee.
image:
type: string
description: URI for an image of the coffee.
required:
- name
- teaser
- price
- image
type: object
Order:
description: An order helps you make coffee
x-speakeasy-entity: Order
properties:
name:
type: string
description: Product name of the coffee.
id:
type: integer
description: Order ID
teaser:
type: string
description: Fun tagline for the coffee.
description:
type: string
description: Product description of the coffee.
price:
type: number
description: Suggested cost of the coffee.
image:
type: string
description: URI for an image of the coffee.
required:
- id
- name
- teaser
- price
- image
type: object
securitySchemes:
APIKey:
description: The API Key for the workspace
in: header
name: x-api-key
type: apiKey