Documentation ¶
Index ¶
- func ImportPostmanCollection(data []byte) error
- func ImportPostmanCollectionFromFile(filePath string) error
- func ImportPostmanEnvironment(data []byte) error
- func ImportPostmanEnvironmentFromFile(filePath string) error
- type ApiKey
- type PostmanCollection
- type PostmanEnvironment
- type PostmanEnvironmentVariable
- type RequestItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportPostmanCollection ¶
Types ¶
type PostmanCollection ¶
type PostmanCollection struct { Info struct { Name string `json:"name"` } `json:"info"` Item []RequestItem `json:"item"` Auth *struct { Type string `json:"type"` ApiKey []ApiKey `json:"apikey,omitempty"` } `json:"auth"` }
PostmanCollection represents the structure of a Postman exported JSON
type PostmanEnvironment ¶
type PostmanEnvironment struct { ID string `json:"id"` Name string `json:"name"` Values []PostmanEnvironmentVariable `json:"values"` }
type RequestItem ¶
type RequestItem struct { Name string `json:"name"` // if request is a folder, it will have an item array Item []RequestItem `json:"item,omitempty"` Request struct { Method string `json:"method"` Header []struct { Key string `json:"key"` Value string `json:"value"` } `json:"header"` Body struct { Mode string `json:"mode"` Raw string `json:"raw"` } `json:"body"` URL struct { Raw string `json:"raw"` } `json:"url"` } `json:"request"` }
Click to show internal directories.
Click to hide internal directories.