struct
Noir::TreeSitterGoRouteExtractor::RestfulRoute
- Noir::TreeSitterGoRouteExtractor::RestfulRoute
- Struct
- Value
- Object
Overview
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.
Defined in:
miniparsers/go_route_extractor_ts.crConstructors
Instance Method Summary
- #handler : String
- #line : Int32
- #params : Array(Tuple(String, String))
- #path : String
- #verb : String
Constructor Detail
def self.new(verb : String, path : String, handler : String, line : Int32, params : Array(Tuple(String, String)))
#