@staticmethod<EOL><INDENT>def load_api_file(file_path):<DEDENT>
api_items = FileUtils.load_file(file_path)<EOL>if not isinstance(api_items, list):<EOL><INDENT>raise p_exception.FileFormatError("<STR_LIT>".format(file_path))<EOL><DEDENT>for api_item in api_items:<EOL><INDENT>if not isinstance(api_item, dict) or len(api_item) != <NUM_LIT:1>:<EOL><INDENT>raise p_exception.FileFormatError("<STR_LIT>".format(file_path))<EOL><DEDENT>key, api_dict = api_item.popitem()<EOL>if key != "<STR_LIT>" or not isinstance(api_dict, dict) or "<STR_LIT>" not in api_dict:<EOL><INDENT>raise p_exception.FileFormatError("<STR_LIT>".format(file_path))<EOL><DEDENT>api_def = api_dict.pop("<STR_LIT>")<EOL>function_meta = parse_function(api_def)<EOL>func_name = function_meta["<STR_LIT>"]<EOL>if func_name in YamlCaseLoader.overall_def_dict["<STR_LIT>"]:<EOL><INDENT>logger.log_warning("<STR_LIT>".format(func_name))<EOL><DEDENT>api_dict["<STR_LIT>"] = function_meta<EOL>YamlCaseLoader.overall_def_dict["<STR_LIT>"][func_name] = api_dict<EOL><DEDENT>
load api definition from file and store in overall_def_dict["api"]
            @param file_path: yaml file path
            @return: store in overall_def_dict["api"]