simple

package
v0.0.0-...-998eeed Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCanonicalCollectionFromBytes

func NewCanonicalCollectionFromBytes(data []byte) (postman2.Collection, error)

func ReadCanonicalCollection

func ReadCanonicalCollection(filepath string) (postman2.Collection, error)

Types

type APIItem

type APIItem struct {
	Name    string           `json:"name,omitempty"`
	Event   []postman2.Event `json:"event,omitempty"`
	Request Request          `json:"request,omitempty"`
}

func (*APIItem) ToCanonical

func (apiItem *APIItem) ToCanonical() postman2.APIItem

type Collection

type Collection struct {
	Info postman2.CollectionInfo `json:"info"`
	Item []FolderItem            `json:"item"`
}

func NewCollectionFromBytes

func NewCollectionFromBytes(data []byte) (Collection, error)

func (*Collection) ToCanonical

func (col *Collection) ToCanonical() postman2.Collection

type FolderItem

type FolderItem struct {
	Name        string    `json:"name,omitempty"`
	Description string    `json:"description,omitempty"`
	Item        []APIItem `json:"item,omitempty"`
}

func (*FolderItem) ToCanonical

func (folder *FolderItem) ToCanonical() postman2.FolderItem

type Request

type Request struct {
	URL         string               `json:"url,omitempty"`
	Method      string               `json:"method,omitempty"`
	Header      []postman2.Header    `json:"header,omitempty"`
	Body        postman2.RequestBody `json:"body,omitempty"`
	Description string               `json:"description,omitempty"`
}

func (*Request) ToCanonical

func (req *Request) ToCanonical() postman2.Request

Jump to

Keyboard shortcuts

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