rest

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CONNECT

type CONNECT struct{}

CONNECT mapping http method "CONNECT"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (CONNECT) GetType

func (G CONNECT) GetType() string

type DELETE

type DELETE struct{}

DELETE mapping http method "DELETE"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (DELETE) GetType

func (G DELETE) GetType() string

type GET

type GET struct{}

GET mapping http method "GET"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (GET) GetType

func (G GET) GetType() string
type HEAD struct{}

HEAD mapping http method "HEAD"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (HEAD) GetType

func (G HEAD) GetType() string

type OPTIONS

type OPTIONS struct{}

OPTIONS mapping http method "OPTIONS"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (OPTIONS) GetType

func (G OPTIONS) GetType() string

type PATCH

type PATCH struct{}

PATCH mapping http method "PATCH"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (PATCH) GetType

func (G PATCH) GetType() string

type POST

type POST struct{}

POST mapping http method "POST"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (POST) GetType

func (G POST) GetType() string

type PUT

type PUT struct{}

PUT mapping http method "PUT"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (PUT) GetType

func (G PUT) GetType() string

type TRACE

type TRACE struct{}

TRACE mapping http method "TRACE"

tag:

- url: mapping url path

- param: define request param source and type, format: "param_name:param_type source" exp: param:"ctx context, id:int path, name query, resource:dto body"

- resp: define response type

- desc: define api description

func (TRACE) GetType

func (G TRACE) GetType() string

Jump to

Keyboard shortcuts

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