@staticmethod<EOL><INDENT>def _print_routes(api_provider, host, port):<DEDENT>
grouped_api_configs = {}<EOL>for api in api_provider.get_all():<EOL><INDENT>key = "<STR_LIT>".format(api.function_name, api.path)<EOL>config = grouped_api_configs.get(key, {})<EOL>config.setdefault("<STR_LIT>", [])<EOL>config["<STR_LIT>"] = api.function_name<EOL>config["<STR_LIT:path>"] = api.path<EOL>config["<STR_LIT>"].append(api.method)<EOL>grouped_api_configs[key] = config<EOL><DEDENT>print_lines = []<EOL>for _, config in grouped_api_configs.items():<EOL><INDENT>methods_str = "<STR_LIT>".format('<STR_LIT:U+002CU+0020>'.join(config["<STR_LIT>"]))<EOL>output = "<STR_LIT>".format(<EOL>config["<STR_LIT>"],<EOL>host,<EOL>port,<EOL>config["<STR_LIT:path>"],<EOL>methods_str)<EOL>print_lines.append(output)<EOL>LOG.info(output)<EOL><DEDENT>return print_lines<EOL>
Helper method to print the APIs that will be mounted. This method is purely for printing purposes.
This method takes in a list of Route Configurations and prints out the Routes grouped by path.
Grouping routes by Function Name + Path is the bulk of the logic.

Example output:
    Mounting Product at http://127.0.0.1:3000/path1/bar [GET, POST, DELETE]
    Mounting Product at http://127.0.0.1:3000/path2/bar [HEAD]

:param samcli.commands.local.lib.provider.ApiProvider api_provider: API Provider that can return a list of APIs
:param string host: Host name where the service is running
:param int port: Port number where the service is running
:returns list(string): List of lines that were printed to the console. Helps with testing