openapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	OperationId string   `yaml:"operationId"`
	Tags        []string `yaml:"tags"`
}

type Path

type Path struct {
	Get     *Operation `yaml:"get"`
	Post    *Operation `yaml:"post"`
	Put     *Operation `yaml:"put"`
	Patch   *Operation `yaml:"patch"`
	Delete  *Operation `yaml:"delete"`
	Head    *Operation `yaml:"head"`
	Options *Operation `yaml:"options"`
}

func (Path) Operations

func (p Path) Operations() map[string]Operation

type Spec

type Spec struct {
	Paths map[string]Path `yaml:"paths"`
}

func LoadSpec

func LoadSpec(filename string) (*Spec, error)

Jump to

Keyboard shortcuts

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