Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScalarHandler ¶ added in v0.5.1
func ScalarHandler(config ScalarConfig) echo.HandlerFunc
ScalarHandler returns an Echo handler that serves the API Explorer page
Types ¶
type ScalarConfig ¶ added in v0.5.1
type ScalarConfig struct {
Title string // Default: "API Explorer"
SpecURL string // Default: "/swagger.json"
AuthEnabled bool // Default: false
AuthDescription string // Default: "" (Hidden if empty or AuthEnabled is false)
SidebarWidth string // Default: "450px"
}
ScalarConfig holds configuration for the API Explorer (Scalar UI)
Click to show internal directories.
Click to hide internal directories.