Closed CristianMG closed 2 years ago
Hi,
i'm not quite sure I completly understand the issue. Could you provide more information about what exactly you're trying to do and which part isn't working?
In theory, you should be able to add the openapi-documentation to your code like this:
import io.github.smiley4.ktorswaggerui.dsl.post
import io.ktor.server.routing.route
import io.ktor.server.routing.routing
...
route("/users") {
/* Registration: POST /api/users */
post({
description = "... description for /users"
}) {
//... handle request
}
post("/login", {
description = "... description for /users/login"
}) {
//... handle request
}
}
Sorry, you are right, the problem was related to the initiation of the application of the example I was using, I created an example from zero and it seems to work fine. Thanks
Hi, I would like to use this library for my backend. I have a problem because I'm using the route dsl to define the route father.
This causes the dsl doesn't have the appropriate functions or work poorly. Is there any intention to give support for this function?
Thanks.