Skip to content

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

Validates if all necessary properties are members of the message object

function isValidateMessage(message: QanaryComponentApi.IQanaryMessage): void

Validates if all necessary properties are members of the message object

Parameters

  • message (QanaryComponentApi.IQanaryMessage): incoming qanary pipeline message Defined at: line 10
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 Returns
  • Promise<RequestHandler> Defined at: line 18