cmd

package
v0.0.0-...-e9e2857 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Headers []string

	UserAgent string
)

Functions

func BuildObjectsFromSchemaDefinitions

func BuildObjectsFromSchemaDefinitions(doc openapi3.T)

func CheckAndConfigureProxy

func CheckAndConfigureProxy() (client http.Client)

func CheckSecDefs

func CheckSecDefs(doc3 openapi3.T) (apiInQuery bool, apiKey string, apiKeyName string)

func Execute

func Execute()

func ExtractSpecFromJS

func ExtractSpecFromJS(bodyBytes []byte) []byte

func GenerateRequests

func GenerateRequests(bodyBytes []byte, client http.Client, command string) []string

func GetBasePath

func GetBasePath(servers openapi3.Servers, host string) (bp string)

func MakeRequest

func MakeRequest(client http.Client, method, target string, timeout int64, reqData io.Reader) ([]byte, string, int)

func PrintSpecInfo

func PrintSpecInfo(i openapi3.Info)

func SetScheme

func SetScheme(swaggerURL string) (scheme string)

func TrimHostScheme

func TrimHostScheme(apiTarget, fullUrlHost string) (host string)

func UnmarshalSpec

func UnmarshalSpec(bodyBytes []byte) (newDoc *openapi3.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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