An identifying string for the handler
The request handler function
Builds a request handler function that can be assigned to expressjs routes.
An expressjs request handler.
Sets the input mapping for the handler.
A mapping function that maps the HTTP request to an input object, or, a map that maps input properties to the corresponding values from the HTTP request. Supported mapping values include:
1. params: Maps values from req.params to the input
2. body: Maps values from req.body to the input
A reference to the handler builder, to be used for function chaining.
Sets the output mapping for the handler.
A mapping function that maps the output of the handler function to an HTTP response object.
A reference to the handler builder, to be used for function chaining.
Sets the schema to be used when validating mapped input objects.
A JSON schema object that can be used to validate the mapped input.
A reference to the handler builder, to be used for function chaining.
Generated using TypeDoc
Class that can be used to build HTTP request handlers for express js. Breaks down requests into three distinct phases:
(1) Request mapping: Generate a JSON object from the incoming HTTP request
(2) Request processing: Process the JSON object and return a response
(3) Response mapping: Generate an HTTP response based on the JSON response