- Created swagger.yml to define Swagger UI and JSON endpoints. - Implemented swagger.ts to serve Swagger UI HTML and JSON specifications. - Updated swagger.json with detailed API documentation, including paths, components, and schemas for various requests and responses.
21 lines
372 B
YAML
21 lines
372 B
YAML
# Swagger Documentation Functions
|
|
|
|
swaggerUi:
|
|
handler: src/handlers/swagger.swaggerUi
|
|
memorySize: 256
|
|
events:
|
|
- httpApi:
|
|
path: /api-docs
|
|
method: get
|
|
|
|
swaggerJson:
|
|
handler: src/handlers/swagger.swaggerJson
|
|
memorySize: 256
|
|
package:
|
|
patterns:
|
|
- 'swagger.json'
|
|
events:
|
|
- httpApi:
|
|
path: /swagger.json
|
|
method: get
|