Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
validation.Validatable `json:"-"`
Name string `json:"name" yaml:"Name"`
Method http.Method `json:"method" yaml:"Method"`
Path string `json:"path" yaml:"Path"`
Description string `json:"description" yaml:"Description"`
Documentation string `json:"documentation" yaml:"Documentation"`
Deprecated string `json:"deprecated" yaml:"Deprecated"`
Labels data.Map[string] `json:"labels" yaml:"Labels"`
Headers http.Headers `json:"headers" yaml:"Headers"`
Payload any `json:"payload" yaml:"Payload"`
Expect *Expect `json:"expect" yaml:"Expect"`
}
Endpoint is an HTTP client endpoint.
func (*Endpoint) Validate ¶
Validate makes Endpoint validatable by implementing validation.Validatable interface.
type Expect ¶
type Expect struct {
Status http.Status `json:"status" yaml:"Status"`
Headers http.Headers `json:"headers" yaml:"Headers"`
}
Expect is an HTTP response expectation.
func (*Expect) ValidateHeader ¶
ValidateHeader validates the headers of the given response.
Click to show internal directories.
Click to hide internal directories.