Skip to content

feat: add dynamic OpenAPI/Swagger documentation#1761

Open
monil80 wants to merge 1 commit into
typicode:mainfrom
monil80:feat/dynamic-swagger
Open

feat: add dynamic OpenAPI/Swagger documentation#1761
monil80 wants to merge 1 commit into
typicode:mainfrom
monil80:feat/dynamic-swagger

Conversation

@monil80
Copy link
Copy Markdown

@monil80 monil80 commented May 17, 2026

Summary

  • GET /docs — Swagger UI (CDN, no new dependencies)
  • GET /openapi.json — OpenAPI 3.0 generated from db.json at runtime
  • --no-swagger and createApp({ swagger: false }) to disable

Test plan

  • npm test
  • npm run lint
  • npx json-server fixtures/db.jsonhttp://localhost:3000/docs
  • npx json-server --no-swagger fixtures/db.json/docs returns 404

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.

1 participant