• List organization reviews by user handler

    Parameters

    • reviewService: ReviewDataService

      injected service use to handle the review related operations

      • getReviews
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • params.userId is required

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    Description

    This handler is used to get organization reviews by user by applying the following steps in sequence:

    1. Get the userId from params

    2. Get the reviews where reviewedBy is userId (reviewService.getReviews)

    Throws

    400 NBError Bad Request

    • userId is missing in request params
    • error when parse paginated list query
    • pagination must be set
    • Page size exceeds ${MAXIMUM_PAGE_SIZE} mbs

Generated using TypeDoc