rest

package
v1.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "/rest"

Variables

This section is empty.

Functions

func ExecuteDelete

func ExecuteDelete(
	routes []types.Route,
	routeFormat string,
	values ...interface{},
) int

func ExecuteGet

func ExecuteGet(routes []types.Route, routeFormat string, responsePtr interface{}, values ...interface{}) int

func ExecuteGetDataTypeJsonValue

func ExecuteGetDataTypeJsonValue(routes []types.Route, dataType, id string) interface{}

ExecuteGetDataTypeJson performs a GET request and returns the json decoded value of the provided row cell

func ExecutePost

func ExecutePost(
	routes []types.Route,
	routeFormat string,
	requestBody string,
	responsePtr interface{},
	values ...interface{},
) int

func ExecutePut

func ExecutePut(
	routes []types.Route,
	routeFormat string,
	requestBody string,
	responsePtr interface{},
	values ...interface{},
) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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