Swagger support - swagger works in FastAPI but Not in Express #32

Closed
opened 2026-02-15 19:15:19 -05:00 by yindo · 3 comments
Owner

Originally created by @balasubramaniam-ramasamy on GitHub (Aug 8, 2024).

Hi

I tried to create different backends.
WORKS: In FastAPI backend, the apis are exposed in swagger in the url - http://0.0.0.0:8000/docs

NEED HELP: However, when I run express \ nodejs in localhost, it is not showing swagger.
I tried this below url -- http://localhost:8000/api/<name-in-backend-pacakage.json>/api/swagger/

Also, I am not finding swagger.json, in express backend project, which is supposed contain the APIs exposed by this backened.

Kindly, help to resolve.
3RD BACKEND: I am not sure how swagger works in next.js (backend/fullstack). Will it support in next.js (backend) too.?

Originally created by @balasubramaniam-ramasamy on GitHub (Aug 8, 2024). Hi I tried to create different backends. **WORKS**: In **FastAPI** backend, the apis are exposed in swagger in the url - http://0.0.0.0:8000/docs NEED **HELP**: However, when I run `express \ nodejs` in localhost, it is not showing swagger. I tried this below url -- http://localhost:8000/api/<name-in-backend-pacakage.json>/api/swagger/ Also, I am not finding swagger.json, in express backend project, which is supposed contain the APIs exposed by this backened. Kindly, help to resolve. 3RD BACKEND: I am not sure how swagger works in next.js (backend/fullstack). Will it support in next.js (backend) too.?
yindo closed this issue 2026-02-15 19:15:19 -05:00
Author
Owner

@marcusschiesser commented on GitHub (Aug 8, 2024):

yes, neither express no nextjs do support swagger out of the box

@marcusschiesser commented on GitHub (Aug 8, 2024): yes, neither express no nextjs do support swagger out of the box
Author
Owner

@balasubramaniam-ramasamy commented on GitHub (Aug 8, 2024):

If we can implement Swagger, it will be good, as it is available.

https://www.npmjs.com/package/swagger-ui-express
https://www.npmjs.com/package/next-swagger-doc

Thanks

@balasubramaniam-ramasamy commented on GitHub (Aug 8, 2024): If we can implement Swagger, it will be good, as it is available. https://www.npmjs.com/package/swagger-ui-express https://www.npmjs.com/package/next-swagger-doc Thanks
Author
Owner

@marcusschiesser commented on GitHub (Aug 8, 2024):

@balasubramaniam-ramasamy not on the roadmap on the moment, but you're welcome to send a PR

@marcusschiesser commented on GitHub (Aug 8, 2024): @balasubramaniam-ramasamy not on the roadmap on the moment, but you're welcome to send a PR
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#32