@@ -12,6 +12,11 @@ schemes:
1212 - https
1313# will be prefixed to all paths
1414basePath : /v1
15+ securityDefinitions :
16+ apikey :
17+ type : apiKey
18+ name : server_token
19+ in : query
1520produces :
1621 - application/json
1722paths :
@@ -32,19 +37,19 @@ paths:
3237 required : true
3338 type : number
3439 format : double
40+ security :
41+ - apikey : []
3542 tags :
3643 - Products
3744 responses :
3845 200 :
3946 description : An array of products
4047 schema :
41- type : array
42- items :
43- $ref : Product
48+ $ref : " #/definitions/ProductList"
4449 default :
4550 description : Unexpected error
4651 schema :
47- $ref : Error
52+ $ref : " #/definitions/ Error"
4853 /estimates/price :
4954 get :
5055 summary : Price Estimates
@@ -82,11 +87,11 @@ paths:
8287 schema :
8388 type : array
8489 items :
85- $ref : PriceEstimate
90+ $ref : " #/definitions/ PriceEstimate"
8691 default :
8792 description : Unexpected error
8893 schema :
89- $ref : Error
94+ $ref : " #/definitions/ Error"
9095 /estimates/time :
9196 get :
9297 summary : Time Estimates
@@ -121,11 +126,11 @@ paths:
121126 schema :
122127 type : array
123128 items :
124- $ref : Product
129+ $ref : " #/definitions/ Product"
125130 default :
126131 description : Unexpected error
127132 schema :
128- $ref : Error
133+ $ref : " #/definitions/ Error"
129134 /me :
130135 get :
131136 summary : User Profile
@@ -136,11 +141,11 @@ paths:
136141 200 :
137142 description : Profile information for a user
138143 schema :
139- $ref : Profile
144+ $ref : " #/definitions/ Profile"
140145 default :
141146 description : Unexpected error
142147 schema :
143- $ref : Error
148+ $ref : " #/definitions/ Error"
144149 /history :
145150 get :
146151 summary : User Activity
@@ -162,11 +167,11 @@ paths:
162167 200 :
163168 description : History information for the given user
164169 schema :
165- $ref : Activities
170+ $ref : " #/definitions/ Activities"
166171 default :
167172 description : Unexpected error
168173 schema :
169- $ref : Error
174+ $ref : " #/definitions/ Error"
170175definitions :
171176 Product :
172177 properties :
@@ -180,11 +185,18 @@ definitions:
180185 type : string
181186 description : Display name of product.
182187 capacity :
183- type : string
188+ type : integer
184189 description : Capacity of product. For example, 4 people.
185190 image :
186191 type : string
187192 description : Image URL representing the product.
193+ ProductList :
194+ properties :
195+ products :
196+ description : Contains the list of products
197+ type : array
198+ items :
199+ $ref : " #/definitions/Product"
188200 PriceEstimate :
189201 properties :
190202 product_id :
@@ -246,7 +258,8 @@ definitions:
246258 description : Total number of items available.
247259 history :
248260 type : array
249- $ref : Activity
261+ items :
262+ $ref : " #/definitions/Activity"
250263 Error :
251264 properties :
252265 code :
@@ -256,3 +269,4 @@ definitions:
256269 type : string
257270 fields :
258271 type : string
272+
0 commit comments