operations

package
v0.0.0-...-03a1926 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(doc libopenapi.Document, path, packageName string) error

Generate go requests from OpenAPI spec paths operations into a go file.

Types

type Findable

type Findable struct {
	ParamName     string
	TypeName      string
	ListTypeName  string
	ListFieldName string
	Condition     string
}

type QueryParam

type QueryParam struct {
	FuncName   string
	ParamName  string
	ParamType  string
	FuncReturn string
}

type RequestTmpl

type RequestTmpl struct {
	Comment        string
	Name           string
	OperationID    string
	Params         string
	ValueReturn    string
	URLPathBuilder string
	HTTPMethod     string
	BodyRequest    bool
	BodyRespType   string
	ContentType    string
	QueryParams    map[string]string
}

Jump to

Keyboard shortcuts

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