def METHOD_NAME(request, channel_id):
    """ Generates data for channel contents. Used for look-inside previews
        Keyword arguments:
            channel_id (str): id of channel to get details from
    """
    # Get nodes and channel
    channel = get_object_or_404(Channel.filter_view_queryset(Channel.objects.all(), request.user), id=channel_id)
    if not channel.main_tree:
        raise Http404
    data = get_node_details_cached(request.user, channel.main_tree, channel_id=channel_id)
    return HttpResponse(json.dumps(data))