MCPcopy Create free account
hub / github.com/a-h/rest / Get

Method Get

api.go:214–216  ·  view source on GitHub ↗

Get defines a GET request route for the given pattern.

(pattern string)

Source from the content-addressed store, hash-verified

212
213// Get defines a GET request route for the given pattern.
214func (api *API) Get(pattern string) (r *Route) {
215 return api.Route(http.MethodGet, pattern)
216}
217
218// Head defines a HEAD request route for the given pattern.
219func (api *API) Head(pattern string) (r *Route) {

Callers 7

TestSchemaFunction · 0.95
TestMergeFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
RegisterModelMethod · 0.80
getParamsFunction · 0.80

Calls 1

RouteMethod · 0.95

Tested by 2

TestSchemaFunction · 0.76
TestMergeFunction · 0.76