qanary-component-core/resources/annotatequestion/annotatequestion.controller
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-core/resources/annotatequestion/annotatequestion.controller
Section titled “qanary-component-core/resources/annotatequestion/annotatequestion.controller”- Package:
@leipzigtreechat/qanary-component-core - Source file:
packages/qanary-component-core/src/resources/annotatequestion/annotatequestion.controller.ts
Summary
Section titled “Summary”Validates if all necessary properties are members of the message object
Functions
Section titled “Functions”isValidateMessage
Section titled “isValidateMessage”function isValidateMessage(message: QanaryComponentApi.IQanaryMessage): voidValidates if all necessary properties are members of the message object
Parameters
message(QanaryComponentApi.IQanaryMessage): incoming qanary pipeline message Defined at: line 10
createAnnotateQuestion
Section titled “createAnnotateQuestion”function createAnnotateQuestion(handler: IQanaryComponentMessageHandler): Promise<RequestHandler>Request handler for the /annotatequestion endpoint
Parameters
handler(IQanaryComponentMessageHandler): the event handler for incoming messages of the Qanary pipeline, passed the using component ReturnsPromise<RequestHandler>Defined at: line 18
In qanary-component-core
Section titled “In qanary-component-core”qanary-component-core/helper/get-portqanary-component-core/helper/sleepqanary-component-core/indexqanary-component-core/middlewares/error/error.middlewareqanary-component-core/middlewares/error/error.modelqanary-component-core/qanary-component-coreqanary-component-core/resources/about/about.controllerqanary-component-core/resources/about/about.modelqanary-component-core/resources/about/about.routerqanary-component-core/resources/annotatequestion/annotatequestion.controllerqanary-component-core/resources/annotatequestion/annotatequestion.modelqanary-component-core/resources/annotatequestion/annotatequestion.routerqanary-component-core/resources/health/health.controllerqanary-component-core/resources/health/health.routerqanary-component-core/services/registration/registration.modelqanary-component-core/services/registration/registration.service