def common_parameters(cart_id: str, item_name: str):
    """
    Function to deal with common parameters for endpoints.

    :param str cart_id: cart id
    :param str item_name: item name
    :return: dict with cart id and item name
    :rtype: dict
    """
    return {"cart_id": cart_id, "item_name": item_name}