We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't get the auto-documentation to work.
Here is my code:
func main() { err := korm.New(korm.SQLITE, "db", sqlitedriver.Use()) if lg.CheckError(err) { return } defer korm.Shutdown() server := korm.WithDashboard("localhost:6969", korm.DashOpts{ WithTracing: true, DocsUrl: "/api/docs", WithTerminal: true, WithNodeManager: true, WithRequestCounter: true, }) korm.WithDocs( false, "", korm.BasicAuth, ) korm.BASIC_AUTH_USER = "admin" korm.BASIC_AUTH_PASS = "admin" korm.WithShell() server.App().Get("/", RootHandler). Description("RooRootHandler"). Tags("root"). Accept("json"). Produce("json"). In(ksmux.DocsIn{ Name: "page", In: "query", Type: "integer", Required: false, Description: "Page number", }.String()). Out("200 {array} models.User 'List of users'") err = korm.AutoMigrate[User]("users") lg.CheckError(err) err = korm.AutoMigrate[Task]("tasks") lg.CheckError(err) server.Run() }
Moving to http://localhost:6969/api/docs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I can't get the auto-documentation to work.
Here is my code:
Moving to http://localhost:6969/api/docs
The text was updated successfully, but these errors were encountered: