S
Solara5mo ago
Stefan

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
MaartenBreddels
MaartenBreddels5mo ago
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.
Stefan
Stefan5mo ago
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.
Stefan
Stefan5mo ago
No description
Stefan
Stefan5mo ago
So it would be below this page
MaartenBreddels
MaartenBreddels5mo ago
ah, you could try an iframe
Stefan
Stefan5mo ago
I'm not a webdev, so sorry for all the noob questions