api

package
v0.0.0-...-2b928f8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointConfigs = map[string]*EndpointConfig{}

Functions

func GenerateAPIsWithConfig

func GenerateAPIsWithConfig(router adapters.Router, models []shared.ModelData, configs map[string]*EndpointConfig) error

func LogError

func LogError(err error)

func LogInfo

func LogInfo(message string)

func ParseModels

func ParseModels(path string) ([]shared.ModelData, error)

func ValidateResponseModelName

func ValidateResponseModelName(name string) bool

Types

type EndpointConfig

type EndpointConfig struct {
	StaticResponse   map[string]interface{}
	ConditionalLogic func(request map[string]interface{}) map[string]interface{}
}

Jump to

Keyboard shortcuts

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