How to embed swagger API documentation into a solara page?
I have an API running on the same host as the solara application. I would like to embed the swagger documentation in solara, is this possible?
6 Replies
Yes, if you follow the docs on https://solara.dev/docs/deploying/self-hosted and just add the swagger endpoint following the fastapi docs, it should all work together.
Sorry, I should have clarified this better. I followed that, and it works great and I can access the swagger endpoint via
/docs
. But it would be even better if I could embed it into a Page()
directly.So it would be below this page
ah, you could try an iframe
I'm not a webdev, so sorry for all the noob questions