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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.