operations

package
v0.102.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 12 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 QueryParam

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

type RequestTmpl

type RequestTmpl struct {
	Comment        string
	Name           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