rest

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 6 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
	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 added in v0.48.0

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