simple

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 6 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)

noinspection ALL

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.Item

type Collection

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

func NewCollectionFromBytes

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

func (*Collection) ToCanonical

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

type Item

type Item struct {
	Name        string           `json:"name,omitempty"`        // Folder,API
	Description string           `json:"description,omitempty"` // Folder
	Item        []*Item          `json:"item,omitempty"`        // Folder
	Event       []postman2.Event `json:"event,omitempty"`       // API
	Request     Request          `json:"request,omitempty"`     // API
}

func (*Item) ToCanonical

func (thisItem *Item) ToCanonical() *postman2.Item

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