swagger

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiPath

type ApiPath struct {
	Path           string
	ResourceType   string
	ApiVersion     string
	ExampleMap     map[string]string
	OperationIdMap map[string]string
	Methods        []string
	ApiType        ApiType
}

func Load

func Load(swaggerPath string) ([]ApiPath, error)

Load loads the swagger spec from the given path

type ApiType

type ApiType string
const (
	ApiTypeUnknown        ApiType = "unknown"
	ApiTypeList           ApiType = "list"
	ApiTypeResource       ApiType = "resource"
	ApiTypeResourceAction ApiType = "resourceAction"
	ApiTypeProviderAction ApiType = "providerAction"
)

Jump to

Keyboard shortcuts

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