Skip to content

Commit ca11d2d

Browse files
authored
fix: openapi uri (#243)
* fix: openapi endpoint and arch parameter. * fix: openapi app version.
1 parent 0d665a0 commit ca11d2d

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

site/public/openapi.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
title: AWS Lambda Calculator API
44
description: API for calculating AWS Lambda costs based on various parameters
5-
version: 2.1.3
5+
version: 2.1.7
66
contact:
77
name: Lior Dux
88
email: lior.dux@develeap.com
@@ -11,11 +11,11 @@ info:
1111
url: https://www.apache.org/licenses/LICENSE-2.0.html
1212

1313
servers:
14-
- url: /prod
14+
- url: https://kdhtgb2u9d.execute-api.us-east-1.amazonaws.com/prod
1515
description: Production server
1616

1717
paths:
18-
/api:
18+
/:
1919
post:
2020
summary: Calculate AWS Lambda costs
2121
description: Calculate the cost of running AWS Lambda functions based on the provided parameters
@@ -31,7 +31,7 @@ paths:
3131
summary: Basic Lambda calculation
3232
value:
3333
region: "us-east-1"
34-
architecture: "x86_64"
34+
architecture: "x86"
3535
number_of_requests: 1000000
3636
request_unit: "per month"
3737
duration_of_each_request_in_ms: 200
@@ -53,7 +53,12 @@ paths:
5353
value:
5454
status: "success"
5555
cost: 0.000417
56-
calculation_steps: ["Applied AWS Free Tier benefits", "Calculated request cost", "Calculated duration cost"]
56+
calculation_steps:
57+
[
58+
"Applied AWS Free Tier benefits",
59+
"Calculated request cost",
60+
"Calculated duration cost",
61+
]
5762
"400":
5863
description: Bad request - missing required field
5964
content:
@@ -172,9 +177,9 @@ components:
172177
architecture:
173178
type: string
174179
description: Lambda function architecture
175-
example: "x86_64"
180+
example: "x86"
176181
enum:
177-
- "x86_64"
182+
- "x86"
178183
- "arm64"
179184
number_of_requests:
180185
type: integer
@@ -256,7 +261,12 @@ components:
256261
items:
257262
type: string
258263
description: Step-by-step calculation breakdown (only included when verbose=true)
259-
example: ["Applied AWS Free Tier benefits", "Calculated request cost", "Calculated duration cost"]
264+
example:
265+
[
266+
"Applied AWS Free Tier benefits",
267+
"Calculated request cost",
268+
"Calculated duration cost",
269+
]
260270

261271
ErrorResponse:
262272
type: object
@@ -274,4 +284,3 @@ components:
274284
type: string
275285
description: Error message
276286
example: "Missing required field: region"
277-

0 commit comments

Comments
 (0)