ExecutablePath
Stentor API Reference / stentor-models/src / ExecutablePath
Interface: ExecutablePath
Defined in: packages/stentor-models/src/Path/Path.ts:13
An executable path defines exactly where an incoming request will be routed to.
Extendsβ
Propertiesβ
actions?β
optionalactions:StorageAction[]
Defined in: packages/stentor-models/src/Action/Actionable.ts:12
Inherited fromβ
conditions?β
optionalconditions:string|Conditions
Defined in: packages/stentor-models/src/Conditional.ts:73
Conditions to be met.
Can either be a Conditions object or a string such as "foo('bar') || false"
Inherited fromβ
type?β
optionaltype:"START"
Defined in: packages/stentor-models/src/Path/Path.ts:24
Type of path.
Setting type to START changes the request so that handler.start() is called.
Not setting the type passes the request straight through, requiring the new handler to handle the request as is.
intentIdβ
intentId:
string
Defined in: packages/stentor-models/src/Path/Path.ts:28
The ID of the handler to forward or redirect the request to
slots?β
optionalslots:RequestSlotMap
Defined in: packages/stentor-models/src/Path/Path.ts:33
Optional, if redirecting or forwarding to a handler that is expecting slots, set these to pre-populate them on the request.
data?β
optionaldata:object
Defined in: packages/stentor-models/src/Path/Path.ts:66
Inherited fromβ
platform?β
optionalplatform:string
Defined in: packages/stentor-models/src/Path/Path.ts:72
Optional platform filter for the path.
If set, the path will only apply to the specified platform.