Skip to content

feat: add openapi and swagger ui docs for the JSON API#245

Open
runleveldev wants to merge 2 commits intomainfrom
rgingras/feature/244-api-documentation
Open

feat: add openapi and swagger ui docs for the JSON API#245
runleveldev wants to merge 2 commits intomainfrom
rgingras/feature/244-api-documentation

Conversation

@runleveldev
Copy link
Collaborator

@runleveldev runleveldev commented Mar 18, 2026

image

This pull request adds Swagger UI API documentation support to the project by introducing new dependencies and updating the server setup. The changes primarily focus on making API docs available at the /api endpoint using an OpenAPI YAML specification.

API Documentation Integration:

  • Added swagger-ui-express and yamljs as dependencies in both package.json and package-lock.json to enable serving and parsing OpenAPI specs. [1] [2]
  • Updated server.js to require and configure swagger-ui-express and yamljs, loading the OpenAPI spec from openapi.yaml and mounting the Swagger UI at the /api route. [1] [2]

Dependency Updates:

  • Added several new packages and sub-dependencies to package-lock.json to support Swagger UI and YAML parsing, including @scarf/scarf, argparse, fs.realpath, inflight, path-is-absolute, sprintf-js, swagger-ui-dist, and others. [1] [2] [3] [4] [5] [6] [7] [8]

These changes make it much easier for developers and users to explore and understand the API endpoints via interactive documentation.

@runleveldev runleveldev linked an issue Mar 18, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Documentation

1 participant