Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Endpoint string `yaml:"endpoint" json:"endpoint"`
ServerURL string `yaml:"server_url" json:"server_url"`
Method string `yaml:"method" json:"method"`
QueryParams map[string]interface{} `yaml:"query_params" json:"query_params"`
QueryParamsFromStore map[string]string `yaml:"query_params_from_store" json:"query_params_from_store"`
Headers map[string]*string `yaml:"header" json:"header"`
HeaderFromStore map[string]string `yaml:"header_from_store" json:"header_from_store"`
BodyType string `yaml:"body_type" json:"body_type"`
Body util.GenericJson `yaml:"body" json:"body"`
DoNotStore bool
ManifestDir string
DataStore *datastore.Datastore
// contains filtered or unexported fields
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponseFromSpec ¶
func NewResponseFromSpec(spec ResponseSerialization) (res Response, err error)
func (*Response) CheckAndConvertXML ¶
func (Response) ToGenericJson ¶
func (response Response) ToGenericJson() (res util.GenericJson, err error)
func (Response) ToJsonString ¶
type ResponseSerialization ¶
type ResponseSerialization struct {
StatusCode int `yaml:"statuscode" json:"statuscode"`
Headers map[string][]string `yaml:"header" json:"header,omitempty"`
Body util.GenericJson `yaml:"body" json:"body,omitempty"`
BodyControl util.JsonObject `yaml:"body:control" json:"body:control,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.