mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-13 21:01:55 -04:00
Swagger support - swagger works in FastAPI but Not in Express #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 \ nodejsin 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.?
@marcusschiesser commented on GitHub (Aug 8, 2024):
yes, neither express no nextjs do support swagger out of the box
@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
@marcusschiesser commented on GitHub (Aug 8, 2024):
@balasubramaniam-ramasamy not on the roadmap on the moment, but you're welcome to send a PR