def get_data_from_request_body(req: HttpRequest):
    """Extract type_of_data and target in a function.

    Args:
        req (HttpRequest): The HTTP request object.

    Returns:
        tuple: A tuple containing the extracted type_of_data and target.
    """
    __method_name = inspect.currentframe().f_code.co_name
    try:
        type_of_data = req.params.get("type").strip()
        target = req.params.get("target").strip()
        return type_of_data, target
    except TypeError as type_error:
        applogger.error(
            consts.LOG_FORMAT.format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.DOSSIER_HTTP_STARTER_FUNCTION_NAME,
                "Type error : Error-{}".format(type_error),
            )
        )
        raise InfobloxException()
Extract type_of_data and target in a function.

    Args:
        req (HttpRequest): The HTTP request object.

    Returns:
        tuple: A tuple containing the extracted type_of_data and target.
    
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/InfobloxDossierHttpStarter/__init__.py