Skip to content

feat(api-docs): serve OpenAPI 3.1 spec via interactive Swagger UI - #1245

Merged
ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
lorenzo-romano:feat/issue-1128-openapi-swagger
Sep 1, 2026
Merged

feat(api-docs): serve OpenAPI 3.1 spec via interactive Swagger UI#1245
ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
lorenzo-romano:feat/issue-1128-openapi-swagger

Conversation

@lorenzo-romano

Copy link
Copy Markdown
Contributor

Summary

Upgrades the API documentation stack to OpenAPI 3.1 and exposes it interactively:

  • Swagger UI mounted at /api/docs (via swagger-ui-express) for exploring the full API.
  • OpenAPI 3.1.0 spec definition (upgraded from 3.0 in swagger.ts).
  • Machine-readable exports for automated SDK generation:
    • /api/docs/spec.json — OpenAPI 3.1 document as JSON
    • /api/docs/spec.yaml — OpenAPI 3.1 document as YAML
  • /api/docs/info — summary endpoint reporting spec version, path count, and schema count for CI assertions.
  • Added yaml to dependencies for deterministic YAML serialization.

Test Plan

  • npx tsc --noEmit — new/changed files compile clean.
  • Verified spec generation: openapi: 3.1.0, 42 paths, YAML serialization round-trips.

Closes #1128

Upgrades the swagger-jsdoc definition to OpenAPI 3.1 and mounts
swagger-ui-express at /api/docs with machine-readable JSON and YAML
spec exports at /api/docs/spec.json and /api/docs/spec.yaml for
automated SDK generation. Adds a /api/docs/info endpoint summarizing
spec coverage.

Closes StellarDevHub#1128
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@lorenzo-romano 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

@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@lorenzo-romano is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ayomideadeniran

Copy link
Copy Markdown
Contributor

Pr under review

@ayomideadeniran
ayomideadeniran merged commit 3e04246 into StellarDevHub:main Sep 1, 2026
1 check failed
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.

[Backend] Build OpenAPI 3.1 Documentation Engine with Interactive Swagger UI

2 participants