Optional
baseBase path for all routes, e.g. base: 'v1' would prefix all routes with /v1.
Optional
callbackOverride the default callback query parameter name for JSONP calls.
Optional
loggerlambda-api logging configuration. Enables/disables default logging by setting to a boolean value or allows for configuration through a Logging Configuration object.
Defaults to info level logging.
Optional
mimeName/value pairs of additional MIME types to be supported
by the type(). The key should be the file extension
(without the .) and the value should be the expected MIME type,
e.g. application/json
.
Optional
nameAPI human readable name.
Optional
openOpenAPI configuration.
Optional
serializerOptional object serializer function. This function receives the body of a response and must return a string. Defaults to JSON.stringify
Optional
serverLogging configuration for ts-lambda-api. See [[ServerLoggerConfig]] for more information.
Defaults to info level plain string logging.
Optional
versionVersion number accessible via Request
context instances.
Generated using TypeDoc
Base class for app configuration. Extend this to supply your own configuration properties.
It is recommended to create your own sub-class and register it with the application IOC container.
This class supports all the
lambda-api
config options by implementing theOptions
interface.