def sprintf_cgi_overview(cgi):
    """
    Returns a pretty printable version of the cgi in the form:
        endpoint: ...
        description: ...
        permission: ...
        method: ...
    """
    data = f"""	endpoint: {cgi.endpoint}
	description: {cgi.description}
	permission: {cgi.permission}
	method: {cgi.method}
"""
    data += '\tget_parameters:\n'
    for param in cgi.get_parameters:
        data += f'\t\t{param.identifier}: {param.description}\n'
    data += '\treturn parameters:\n'
    for param in cgi.returns:
        data += f'\t\t{param.identifier}: {param.description}\n'
    return data
