Documentation
¶
Index ¶
- Constants
- func IsCollectionFile(filename string) bool
- func IsEnvironmentFile(filename string) bool
- func NewRequestSpec(pmReq *Request) *gpmodel.RequestSpec
- func ParseCollection(filename string) (*gpmodel.RequestGroup, error)
- func ParseEnvironment(filename string) (*gpmodel.VarGroup, error)
- func Print(coll *Collection)
- type Body
- type BodyOptionRaw
- type BodyOptions
- type Collection
- type CollectionInfo
- type EnvVal
- type Environment
- type Event
- type Header
- type KeyValue
- type ProtocolProfileBehavior
- type Request
- type Script
- type Url
Constants ¶
View Source
const ( ENV_EXT = "postman_environment.json" COLL_EXT = "postman_collection.json" SCHEMA_2_1_0 = "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" )
View Source
const PostmanCollectionSuffix = "postman_collection.json"
View Source
const PostmanEnvSuffix = ".postman_environment.json"
Variables ¶
This section is empty.
Functions ¶
func IsCollectionFile ¶
func IsEnvironmentFile ¶
func NewRequestSpec ¶
func NewRequestSpec(pmReq *Request) *gpmodel.RequestSpec
func ParseCollection ¶
func ParseCollection(filename string) (*gpmodel.RequestGroup, error)
func Print ¶
func Print(coll *Collection)
Types ¶
type Body ¶
type Body struct { Mode string `json:"mode"` Raw string `json:"raw"` Options *BodyOptions `json:"options"` }
type BodyOptionRaw ¶
type BodyOptionRaw struct {
Language string `json:"language"`
}
type BodyOptions ¶
type BodyOptions struct {
Raw BodyOptionRaw `json:"raw"`
}
type Collection ¶
type Collection struct { Name string `json:"name"` Info *CollectionInfo `json:"info"` Items []*Collection `json:"item"` Events []Event `json:"event"` Request *Request `json:"request"` }
func (*Collection) Label ¶
func (c *Collection) Label() string
type CollectionInfo ¶
type Environment ¶
type ProtocolProfileBehavior ¶
type ProtocolProfileBehavior struct {
DisableBodyPruning bool `json:"disableBodyPruning"`
}
Click to show internal directories.
Click to hide internal directories.