PURISTA API / @purista/base-http-bridge / getDefaultHttpEventBridgeConfig
Function: getDefaultHttpEventBridgeConfig()
getDefaultHttpEventBridgeConfig():
object
Defined in: base-http-bridge/src/HttpEventBridge/getDefaultHttpEventBridgeConfig.impl.ts:5
Returns
object
apiPrefix?
optional
apiPrefix: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
/api
commandPayloadAsCloudEvent?
optional
commandPayloadAsCloudEvent:boolean
command invocations are wrapped in CloudEvent
Link
https://github.com/cloudevents/spec/tree/v1.0
Default
false
defaultCommandTimeout?
optional
defaultCommandTimeout:number
Overwrite the hardcoded default timeout of command invocations
enableHttpCompression?
optional
enableHttpCompression:boolean
enable HTTP compression in web server
Default
true
enableRestApiExpose?
optional
enableRestApiExpose:boolean
expose commands as regular REST endpoints when they are configured as endpoints
Default
true
instanceId?
optional
instanceId: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?
optional
logger:Logger
A logger instance
logLevel?
optional
logLevel:LogLevelName
If no logger instance is given, use this log level
name?
optional
name:string
name of the bridge
Default
HttpEventBridge
pathPrefix?
optional
pathPrefix:string
the prefix to be used for exposing commands as endpoints expecting a event bus message
Default
purista
serverHost?
optional
serverHost:string
Host of the server.
Default
127.0.0.1
serverPort?
optional
serverPort:number
Port of the server.
Default
8080
spanProcessor?
optional
spanProcessor:SpanProcessor
A OpenTelemetry span processor
subscriptionPayloadAsCloudEvent?
optional
subscriptionPayloadAsCloudEvent:boolean
subscription invocations are wrapped in CloudEvent
Link
https://github.com/cloudevents/spec/tree/v1.0
Default
false