simbaOpenapi

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReflector

func GetReflector() (*openapi31.Reflector, error)

GetReflector creates a new OpenAPI reflector with custom options

func ScalarDocsHandler

func ScalarDocsHandler(params DocsParams) http.HandlerFunc

ScalarDocsHandler returns a handler that serves the API documentation using the Scalar API Reference component.

Types

type DocsParams

type DocsParams struct {
	OpenAPIFileType string
	OpenAPIPath     string
	DocsPath        string
	ServiceName     string
}

type OpenAPIGenerator

type OpenAPIGenerator struct {
}

func NewOpenAPIGenerator

func NewOpenAPIGenerator() *OpenAPIGenerator

func (*OpenAPIGenerator) GenerateDocumentation

func (g *OpenAPIGenerator) GenerateDocumentation(_ context.Context, title string, version string, routeInfos []openapiModels.RouteInfo) ([]byte, error)

GenerateDocumentation generates OpenAPI documentation for all routes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL