• Get messages handler

    Parameters

    • notificationService: NotificationDataService

      injected service use to handle the notification related operations

      • getPaginatedMessages
    • paginationConfig: defaultNotification.PaginationConfig

      injected pagination config used to handle the pagination

    • 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: messages

    Description

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

    1. Get paginated messages (notificationService.getPaginatedMessages)

    2. Return the messages

    Throws

    500 NBError Internal Server Error

    • get messages failed

Generated using TypeDoc