-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: No Visual Swagger Generated.... #3
Comments
@nanashili It's correct behavior, there are a few ways to integrate SwiggerUI into your server, so I leave this work outside the library. The simplest way is to use the |
Could you give an example on how to set the SwaggerUI |
@nanashili sure func boot(routes: RoutesBuilder) throws {
routes.get("api") { req in
req.view.render("swagger")
}
.excludeFromOpenAPI()
} But the other way is easier, did you try to run the petstore project? |
Hi @dankinsoid, yes I have tried to run the example project... Here is a recording of what happens. Screen.Recording.2023-04-11.at.10.38.52.mov |
Maybe try swagger/index.html |
@dankinsoid I tried that and it doesn't work either |
@nanashili |
On the example I'm using the one provided by the library and on my personal API I'm using vapor 4.75.0 and swift 5.6 |
@nanashili To be honest I don't know what can be wrong |
@nanashili did you solve this? |
@HakanKumdakciMobven @nanashili you can try use |
So I'm playing around with this library that seems fantastic but the only issue is when you run the your backend there is no swagger website being generated only the swagger json. I tried the example and same issue persists.
The only part of the library that actually works is the fetching the
swagger.json
fileThe text was updated successfully, but these errors were encountered: