Documentation ¶
Index ¶
- func BuildPostmanURL(cfg Configuration, swag swagger2.Specification, swaggerURL string, ...) postman2.URL
- func Convert(cfg Configuration, swag swagger2.Specification) postman2.Collection
- func Merge(cfg Configuration, pman postman2.Collection, swag swagger2.Specification) postman2.Collection
- func Swagger2PathToPostman2APIItem(cfg Configuration, swag swagger2.Specification, url string, method string, ...) postman2.APIItem
- type Configuration
- type Converter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPostmanURL ¶
func BuildPostmanURL(cfg Configuration, swag swagger2.Specification, swaggerURL string, endpoint swagger2.Endpoint) postman2.URL
BuildPostmanURL creates a Postman 2.0 spec URL from a Swagger URL
func Convert ¶
func Convert(cfg Configuration, swag swagger2.Specification) postman2.Collection
Convert creates a Postman 2.0 collection from a configuration and Swagger 2.0 spec
func Merge ¶
func Merge(cfg Configuration, pman postman2.Collection, swag swagger2.Specification) postman2.Collection
Merge creates a Postman 2.0 collection from a configuration, base Postman 2.0 collection and Swagger 2.0 spec
func Swagger2PathToPostman2APIItem ¶
func Swagger2PathToPostman2APIItem(cfg Configuration, swag swagger2.Specification, url string, method string, endpoint swagger2.Endpoint) postman2.APIItem
Swagger2PathToPostman2APIItem converts a Swagger 2.0 path to a Postman 2.0 API item
Types ¶
type Configuration ¶
type Configuration struct { PostmanURLHostname string `json:"postmanURLHostname,omitempty"` PostmanHeaders []postman2.Header `json:"postmanHeaders,omitempty"` }
Configuration is a Swaggman configuration that holds information on how to create the Postman 2.0 collection including overriding Swagger 2.0 spec values.
type Converter ¶
type Converter struct { Configuration Configuration Swagger swagger2.Specification }
Converter is the struct that manages the conversion.
func NewConverter ¶
func NewConverter(cfg Configuration) Converter
NewConverter instantiates a new converter.
Click to show internal directories.
Click to hide internal directories.