Skip to content

Feature/issue 615 openapi generation - #618

Open
Peolite1 wants to merge 2 commits into
Abdulazeem-code:mainfrom
Peolite1:feature/issue-615-openapi-generation
Open

Feature/issue 615 openapi generation#618
Peolite1 wants to merge 2 commits into
Abdulazeem-code:mainfrom
Peolite1:feature/issue-615-openapi-generation

Conversation

@Peolite1

Copy link
Copy Markdown

Description:

Description

Closes #615

This PR automates our API documentation generation using swagger-jsdoc and swagger-ui-express, ensuring that the API documentation stays perfectly in sync with our actual implementation.

Changes Included:

  • Added swagger-jsdoc and swagger-ui-express to package.json.
  • Configured Swagger in server.js to auto-generate the OpenAPI 3.0 spec on server start.
  • Set up a new /api-docs endpoint to serve the Swagger UI for easy exploration of the API by consumers.
  • Added foundational OpenAPI 3.0 JSDoc annotations to all v1 route handlers and server.js endpoints.

Acceptance Criteria Met:

  • 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 (basic structure generated)

Impact:
This ensures documentation is directly tied to the codebase, drastically improving the developer experience for consumers integrating with our API.

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Peolite1 is attempting to deploy a commit to the Abdulazeem's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Peolite1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add OpenAPI 3.0 specification auto-generation from route definitions

1 participant