restgenerator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rest

type Rest struct {
	Schema gw_model.Config
	// contains filtered or unexported fields
}

Rest handles OpenAPI schema generation and sample data serving.

func New

func New(
	schema gw_model.Config,
) (*Rest, error)

New initializes a new Rest instance.

func (*Rest) Handler

func (r *Rest) Handler(endpoint gw_model.Endpoint) gin.HandlerFunc

func (*Rest) RegisterRoutes

func (r *Rest) RegisterRoutes(mux *http.ServeMux, disableSwagger bool, addresses ...string) error

RegisterRoutes registers Rest endpoints.

Jump to

Keyboard shortcuts

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