@@ -12,6 +12,11 @@ schemes:
12
12
- https
13
13
# will be prefixed to all paths
14
14
basePath : /v1
15
+ securityDefinitions :
16
+ apikey :
17
+ type : apiKey
18
+ name : server_token
19
+ in : query
15
20
produces :
16
21
- application/json
17
22
paths :
@@ -32,19 +37,19 @@ paths:
32
37
required : true
33
38
type : number
34
39
format : double
40
+ security :
41
+ - apikey : []
35
42
tags :
36
43
- Products
37
44
responses :
38
45
200 :
39
46
description : An array of products
40
47
schema :
41
- type : array
42
- items :
43
- $ref : Product
48
+ $ref : " #/definitions/Products"
44
49
default :
45
50
description : Unexpected error
46
51
schema :
47
- $ref : Error
52
+ $ref : " #/definitions/ Error"
48
53
/estimates/price :
49
54
get :
50
55
summary : Price Estimates
@@ -82,11 +87,11 @@ paths:
82
87
schema :
83
88
type : array
84
89
items :
85
- $ref : PriceEstimate
90
+ $ref : " #/definitions/ PriceEstimate"
86
91
default :
87
92
description : Unexpected error
88
93
schema :
89
- $ref : Error
94
+ $ref : " #/definitions/ Error"
90
95
/estimates/time :
91
96
get :
92
97
summary : Time Estimates
@@ -121,11 +126,11 @@ paths:
121
126
schema :
122
127
type : array
123
128
items :
124
- $ref : Product
129
+ $ref : " #/definitions/ Product"
125
130
default :
126
131
description : Unexpected error
127
132
schema :
128
- $ref : Error
133
+ $ref : " #/definitions/ Error"
129
134
/me :
130
135
get :
131
136
summary : User Profile
@@ -136,11 +141,11 @@ paths:
136
141
200 :
137
142
description : Profile information for a user
138
143
schema :
139
- $ref : Profile
144
+ $ref : " #/definitions/ Profile"
140
145
default :
141
146
description : Unexpected error
142
147
schema :
143
- $ref : Error
148
+ $ref : " #/definitions/ Error"
144
149
/history :
145
150
get :
146
151
summary : User Activity
@@ -162,11 +167,11 @@ paths:
162
167
200 :
163
168
description : History information for the given user
164
169
schema :
165
- $ref : Activities
170
+ $ref : " #/definitions/ Activities"
166
171
default :
167
172
description : Unexpected error
168
173
schema :
169
- $ref : Error
174
+ $ref : " #/definitions/ Error"
170
175
definitions :
171
176
Product :
172
177
properties :
@@ -180,11 +185,18 @@ definitions:
180
185
type : string
181
186
description : Display name of product.
182
187
capacity :
183
- type : string
188
+ type : integer
184
189
description : Capacity of product. For example, 4 people.
185
190
image :
186
191
type : string
187
192
description : Image URL representing the product.
193
+ Products :
194
+ properties :
195
+ products :
196
+ description : Contains the list of products
197
+ type : array
198
+ items :
199
+ $ref : " #/definitions/Product"
188
200
PriceEstimate :
189
201
properties :
190
202
product_id :
@@ -246,7 +258,8 @@ definitions:
246
258
description : Total number of items available.
247
259
history :
248
260
type : array
249
- $ref : Activity
261
+ items :
262
+ $ref : " #/definitions/Activity"
250
263
Error :
251
264
properties :
252
265
code :
@@ -256,3 +269,4 @@ definitions:
256
269
type : string
257
270
fields :
258
271
type : string
272
+
0 commit comments