PURISTA API / @purista/base-http-bridge / getDefaultHttpEventBridgeConfig
Function: getDefaultHttpEventBridgeConfig()
getDefaultHttpEventBridgeConfig():
object
Defined in: base-http-bridge/src/HttpEventBridge/getDefaultHttpEventBridgeConfig.impl.ts:5
Returns
apiPrefix?
optionalapiPrefix?:string
the prefix to be used if the command is configured as REST api endpoint according to the OpenAPI definition needs to enableRestApiExpose set to true
Default
/apicommandPayloadAsCloudEvent?
optionalcommandPayloadAsCloudEvent?:boolean
command invocations are wrapped in CloudEvent
CloudEvents specification v1.0: https://github.com/cloudevents/spec/tree/v1.0
Default
falsedefaultCommandTimeout?
optionaldefaultCommandTimeout?:number
Overwrite the hardcoded default timeout of command invocations
enableHttpCompression?
optionalenableHttpCompression?:boolean
enable HTTP compression in web server
Default
trueenableRestApiExpose?
optionalenableRestApiExpose?:boolean
expose commands as regular REST endpoints when they are configured as endpoints
Default
trueinstanceId?
optionalinstanceId?:string
The instance id of the event bridge. If not set, a id will generated each time a instance is created. Use this if there is a need to always have the same instance id.
logger?
optionallogger?:Logger
logLevel?
optionallogLevel?:LogLevelName
metrics?
optionalmetrics?:PuristaMetricsRuntimeOptions
metricsRecorder?
optionalmetricsRecorder?:PuristaMetricsRecorderInterface
name?
optionalname?:string
pathPrefix?
optionalpathPrefix?:string
the prefix to be used for exposing commands as endpoints expecting a event bus message
Default
puristaserverHost?
optionalserverHost?:string
Host of the server.
Default
127.0.0.1serverPort?
optionalserverPort?:number
Port of the server.
Default
8080spanProcessor?
optionalspanProcessor?:SpanProcessor
subscriptionPayloadAsCloudEvent?
optionalsubscriptionPayloadAsCloudEvent?:boolean
subscription invocations are wrapped in CloudEvent
CloudEvents specification v1.0: https://github.com/cloudevents/spec/tree/v1.0
Default
false