S
Solara9mo 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
MaartenBreddels9mo 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
Stefan9mo 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
Stefan9mo ago
No description
Stefan
Stefan9mo ago
So it would be below this page
MaartenBreddels
MaartenBreddels9mo ago
ah, you could try an iframe
Stefan
Stefan9mo ago
I'm not a webdev, so sorry for all the noob questions
Want results from more Discord servers?
Add your server