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