• Get one subscription handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getOneSubscriptionAndNormalize
    • 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: subscription

    Description

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

    1. Get subscription by id and normalize (chatService.getOneSubscriptionAndNormalize)

    2. Return the subscription

    Throws

    Error

    • params is missing

    Throws

    400 NBError Bad Request

    • subscription id not found

    Throws

    404 NBError Not Found

    • subscription not found for Id: ${subscriptionId}

Generated using TypeDoc