MCPcopy
hub / github.com/httprunner/httprunner / API

Struct API

hrp/step_api.go:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19type API struct {
20 Name string `json:"name" yaml:"name"` // required
21 Request *Request `json:"request,omitempty" yaml:"request,omitempty"`
22 Variables map[string]interface{} `json:"variables,omitempty" yaml:"variables,omitempty"`
23 SetupHooks []string `json:"setup_hooks,omitempty" yaml:"setup_hooks,omitempty"`
24 TeardownHooks []string `json:"teardown_hooks,omitempty" yaml:"teardown_hooks,omitempty"`
25 Extract map[string]string `json:"extract,omitempty" yaml:"extract,omitempty"`
26 Validators []interface{} `json:"validate,omitempty" yaml:"validate,omitempty"`
27 Export []string `json:"export,omitempty" yaml:"export,omitempty"`
28 Path string
29}
30
31func (api *API) GetPath() string {
32 return api.Path

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected