Help us shape the future of Go! Take the 2026 Go Developer Survey

rest

package
v0.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

Rest Runner

Service Id Action Description Request Response
rest/runner send Sends one rest request to the endpoint. Request Response

Documentation

Index

Constants

View Source
const ServiceID = "rest/runner"

ServiceID represents rest service id.

Variables

This section is empty.

Functions

func New

func New() endly.Service

NewRestService creates a new reset service

Types

type Request

type Request struct {
	Options map[string]interface{} `` /* 219-byte string literal not displayed */

	*model.Repeater
	URL     string
	Method  string
	Header  http.Header
	Request interface{}
	Expect  interface{} `description:"If specified it will validated response as actual"`
	// contains filtered or unexported fields
}

Request represents a send request

func (*Request) Init

func (r *Request) Init() error

func (*Request) IsInput

func (r *Request) IsInput() bool

IsInput returns this request (CLI reporter interface)

func (*Request) Messages

func (r *Request) Messages() []*msg.Message

Messages returns messages

type Response

type Response struct {
	Response interface{}
	Assert   *validator.AssertResponse
}

Response represents a rest response

func (*Response) IsOutput

func (r *Response) IsOutput() bool

IsOutput returns this response (CLI reporter interface)

func (*Response) Messages

func (r *Response) Messages() []*msg.Message

Messages returns messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL