Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SwaggerUIHTML embed.FS
Functions ¶
func SwaggerUIHandler ¶
SwaggerUIHandler returns the Swagger UI HTML content
Types ¶
type Spec ¶
type Spec struct {
// contains filtered or unexported fields
}
Spec wraps OpenAPI specification
func (*Spec) MarshalJSON ¶
MarshalJSON returns JSON format of OpenAPI spec
func (*Spec) RegisterOperation ¶
func (s *Spec) RegisterOperation(method, path, summary, description string, tags []string, reqType, respType any)
RegisterOperation registers an operation to OpenAPI spec
Click to show internal directories.
Click to hide internal directories.