stamped

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadSwaggerFile

func DownloadSwaggerFile(url string) spec.Swagger

Types

type Body

type Body struct {
	Mode string `json:"mode"`
	Raw  string `json:"raw"`
}
type Header struct {
	Key      string `json:"key"`
	Value    string `json:"value"`
	Disabled bool   `json:"disabled"`
}

type IndexMap

type IndexMap map[string]int

type Info

type Info struct {
	Schema      string `json:"schema"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Item

type Item struct {
	Name string        `json:"name"`
	Item []RequestInfo `json:"item"`
}

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Postman

type Postman struct {
	// contains filtered or unexported fields
}

func NewPostMan

func NewPostMan(host string) *Postman

func (*Postman) Save

func (this *Postman) Save(path string)

func (*Postman) SwaggerToPostman

func (this *Postman) SwaggerToPostman(swagger *spec.Swagger)

type PostmanFile

type PostmanFile struct {
	Item []Item `json:"item"`
	Info Info   `json:"info"`
}

type Request

type Request struct {
	Method string   `json:"method"`
	Header []Header `json:"header"`
	Body   Body     `json:"body"`
	URL    Url      `json:"url"`
}

type RequestInfo

type RequestInfo struct {
	Name    string  `json:"name"`
	Request Request `json:"request"`
}

type Url

type Url struct {
	Raw  string   `json:"raw"`
	Host []string `json:"host"`
	Path []string `json:"path"`
}

Jump to

Keyboard shortcuts

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