Constructor
An evaluator to perform access control.
An object that manages date for consumption by the API.
An object with the configuration of the API.
A cache used for the API.
Optional
logger: LoggerA Boolean value that determines whether developer mode is enabled.
When developer mode is enabled, certain features are disabled to facilite testing. Developer mode must never be used on a production server.
When developer mode is enabled, the following requirements are removed:
Registers an app method.
App method to register.
Registers all methods that the generator provides.
The method generator object. Must have the proper decorators such as @EndpointGenerator, and must have at least one route defined.
Sets a metric manager for metric emit.
The metric manager object.
Optional
options: MetricManagerOptionsThe options when emitting metrics.
Starts the API service.
A manager class that handles incoming connections and routing. Request body and method response is always assumed to be JSON.