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