• Create a follower

    Parameters

    • followerService: FollowerService

      injected service use to handle the follower related operations

      • createFollower
    • followId: string

      unique identifier of the entity to be followed

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • body is required

    Returns Promise<AdapterHandlerResponse>

    201 Status Created

    Description

    This handler is used to create a follower by applying the following steps in sequence:

    1. Check if request body exists

    2. Create the follower (followerService.createFollower)

    Throws

    Error

    • no body in context

    Throws

    500 NBError Internal Server Error

    • error creating follower

Generated using TypeDoc