struct

Noir::TreeSitterGoRouteExtractor::RestfulRoute

Inherits Struct < Value < Object

go-restful (github.com/emicklei/go-restful) routes. Each WebService declares a base ws.Path("/users") and registers routes as a nested builder chain: ws.Route(ws.GET("/{id}").To(h).Param(ws.PathParameter( "id", ...)).Reads(User{})). The verb and sub-path live on the inner ws.GET(...) call; the full path is the WebService's Path() prefix joined with it; params are self-declared on the chain (PathParameter/ QueryParameter/HeaderParameter/BodyParameter/FormParameter) plus Reads(struct) for the JSON body. handler carries the .To(...) argument for callee wiring.

Constructors

new(verb : String, path : String, handler : String, line : Int32, params : Array(Tuple(String, String)))
Source

Instance methods

handler
Source
line
Source
params
Source
path
Source
verb
Source