addViewWithParameters

addViewWithParameters(path:       String; 
                      cls:        Class; 
                      parameters: ParamListType) typeMethod;

The addViewWithParameters method of the Orb class adds the class specified by the cls parameter as a route for the GET and POST HTTP methods, and the URL path specified by the path parameter. The parameters parameter specifies additional optional parameters that are passed in the URL path rather than the query string.

Each of the additional parameters must be a string, representing the name of a property on the provided associated class.

For details about when the route is invoked, see addRouteWithParameters.