Closed yarex007 closed 2 months ago
i'v already found how to get it working. Here is description how in case somebody else wants.
swag init --dir ./,./handlers and handlers have description on methods what they do that is then generated in swagger.
Describe the bug I would like to generate swagger info not just for main method, but also for endpoints defined in subfolders.
My structure is
and ./routes/routes.go contains package routes
import ( _ "something/docs" "something/routes/handlers/interfaces"
)
func SetupRoutes(app fiber.App, apiHandlers interfaces.ApiHandlersInterface) { app.Get("/swagger/", swagger.HandlerDefault)
}