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

Method Post

api.go:224–226  ·  view source on GitHub ↗

Post defines a POST request route for the given pattern.

(pattern string)

Source from the content-addressed store, hash-verified

222
223// Post defines a POST request route for the given pattern.
224func (api *API) Post(pattern string) (r *Route) {
225 return api.Route(http.MethodPost, pattern)
226}
227
228// Put defines a PUT request route for the given pattern.
229func (api *API) Put(pattern string) (r *Route) {

Callers 3

TestSchemaFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 1

RouteMethod · 0.95

Tested by 1

TestSchemaFunction · 0.76