• Get one message handler

    Parameters

    • notificationService: NotificationDataService

      injected service use to handle the notification related operations

      • getOneMessageAndNormalize
    • authSecrets: AuthSecrets

      injected auth secrets used to handle the authentication

    • authenticate: AuthenticationFunction
    • 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. Get message by id and normalize (notificationService.getOneMessageAndNormalize)

    2. Return the message

    Throws

    500 NBError Internal Server Error

    • get message failed

Generated using TypeDoc