graviteeio_cli/commands/apim/apis/definition_group/diff.py
def diff(obj, api_id, values_file, set, config_path):
    """
    This commande compare the api definition configuration developed on local machine with the configuration on the remote server.
    """
    api_client: ApiClient = obj['api_client']

    if not config_path:
        config_path = "./"

    if not os.path.exists(config_path):
        raise GraviteeioError("No resources folder {} found.".format(config_path))

    api_resolver = ConfigResolver(config_path, values_file)
    api_data = api_resolver.get_data(Config_Type.API, set_values=set)

    api_server = api_client.get_export(api_id, filter_api_values)

    diff_result = jsondiff(api_server, api_data)
    display_dict_differ(diff_result)

    This commande compare the api definition configuration developed on local machine with the configuration on the remote server.
    
This commande compare the api definition configuration developed on local machine with the configuration on the remote server.
This commande compare the api definition configuration developed on local machine with the configuration on the remote server .
def diff(obj, api_id, values_file, set, config_path):
    api_client: ApiClient = obj['api_client']
    if not config_path:
        config_path = "./"
    if not os.path.exists(config_path):
        raise GraviteeioError("No resources folder {} found.".format(config_path))
    api_resolver = ConfigResolver(config_path, values_file)
    api_data = api_resolver.get_data(Config_Type.API, set_values=set)
    api_server = api_client.get_export(api_id, filter_api_values)
    diff_result = jsondiff(api_server, api_data)
    display_dict_differ(diff_result)
def diff ( obj , api_id , values_file , set , config_path ) : api_client : ApiClient = obj [ 'api_client' ] if not config_path : config_path = "./" if not os . path . exists ( config_path ) : raise GraviteeioError ( "No resources folder {} found." . format ( config_path ) ) api_resolver = ConfigResolver ( config_path , values_file ) api_data = api_resolver . get_data ( Config_Type . API , set_values = set ) api_server = api_client . get_export ( api_id , filter_api_values ) diff_result = jsondiff ( api_server , api_data ) display_dict_differ ( diff_result )
This commande compare the api definition configuration developed on local machine with the configuration on the remote server.
This commande compare the api definition configuration developed on local machine with the configuration on the remote server .
"""
    This commande compare the api definition configuration developed on local machine with the configuration on the remote server.
    """
obj
api_id
values_file
set
config_path