Skip to content

v1.2.0

Choose a tag to compare

@celesteg1 celesteg1 released this 10 May 21:20
· 1 commit to main since this release
f97aafa

[v1.2.0] - 2025-05-10

New Features

  • ✨OpenAPI / Swagger documentation for the API endpoints.
    • Health check endpoint (GET /) documented with Swagger.
    • Monthly summary endpoint (POST /monthly-summary) with detailed request/response schema.
    • Reusable error responses for 400 (bad JSON) and 415 (unsupported media type) defined in Swagger components.
  • ✨ Modularised routes to better organise the application:
    • Moved /monthly-summary endpoint to routes/monthlySummary.js,
    • Moved the health check endpoint to routes/healthCheck.js.
  • ✨Added Swagger UI for interactive API docs at http://localhost:3000/api-docs endpoint.
  • ✨Improved error handling for unsupported content types (415) and malformed JSON (400).