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 defintion needs to enableRestApiExpose set to true
Default
/apicommandPayloadAsCloudEvent?
optionalcommandPayloadAsCloudEvent:boolean
command invocations are wrapped in CloudEvent
Link
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
A logger instance
logLevel?
optionallogLevel:LogLevelName
If no logger instance is given, use this log level
name?
optionalname:string
name of the bridge
Default
HttpEventBridgepathPrefix?
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
A OpenTelemetry span processor
subscriptionPayloadAsCloudEvent?
optionalsubscriptionPayloadAsCloudEvent:boolean
subscription invocations are wrapped in CloudEvent
Link
https://github.com/cloudevents/spec/tree/v1.0
Default
false