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

Method HasPathParameter

api.go:277–280  ·  view source on GitHub ↗

HasPathParameter configures a path parameter for the route.

(name string, p PathParam)

Source from the content-addressed store, hash-verified

275
276// HasPathParameter configures a path parameter for the route.
277func (rm *Route) HasPathParameter(name string, p PathParam) *Route {
278 rm.Params.Path[name] = p
279 return rm
280}
281
282// HasQueryParameter configures a query parameter for the route.
283func (rm *Route) HasQueryParameter(name string, q QueryParam) *Route {

Callers 3

TestSchemaFunction · 0.80
TestMergeFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestSchemaFunction · 0.64
TestMergeFunction · 0.64