• Get one message handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getOneMessageAndNormalize
    • authenticate: AuthenticationFunction
    • authSecrets: AuthSecrets

      injected auth secrets use to handle the authentication

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: message

    Description

    This handler will get one message by applying the following steps in sequence:

    1. Authenticate the request (authenticate)

    2. Get message by id and normalize (chatService.getOneMessageAndNormalize)

    3. Return the message

    Throws

    Error

    • params is missing in params

    Throws

    400 NBError Bad Request

    • message id not found

    Throws

    404 NBError Not Found

    • message not found for Id: ${messageId}

Generated using TypeDoc