rest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 5 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 {
	URL     string
	Method  string
	Request interface{}
	Expect  interface{} `description:"If specified it will validated response as actual"`
}

Request represents a send request

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