registerRoute method
- String method,
- String route,
- Schema schema,
- dynamic action(
- RequestContext req,
- ResponseContext res
Registers an action in this objects REST server (service) by the given method and route.
method
the HTTP method of the route.route
the route to register in this object's REST server (service).schema
the schema to use for parameter validation.action
the action to perform at the given route.