def is_version_supported(api_version, version):
    """Check if a version is supported by the API.

    :param api_version: Reference endpoint API version.
    :param version: Version to check against API version.
    :return: boolean if the version is supported.
    """
    api_split = list(map(int, api_version.split('.')))
    ver_split = list(map(int, version.split('.')))
    if api_split[0] > ver_split[0] or api_split[0] == ver_split[0
        ] and api_split[1] >= ver_split[1]:
        return True
    return False
