Skip to content

Add OpenAPI 3.0 specification auto-generation from route definitions #615

Description

@Abdulazeem-code

Description

API documentation is manually maintained and frequently out of sync with the actual implementation.

Proposed Solution

Use swagger-jsdoc to generate an OpenAPI 3.0 spec from JSDoc annotations on route handlers. Serve it via swagger-ui-express at /api-docs.

Acceptance Criteria

  • JSDoc annotations added to all v1 route handlers
  • OpenAPI spec auto-generated on server start
  • Swagger UI served at /api-docs
  • Spec includes request/response schemas, auth, and error codes

Suggested Implementation Areas

src/routes/v1/*.js, server.js, package.json

Impact

Ensures documentation is always in sync with code, drastically improving developer experience for API consumers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackenddocumentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions