def list_files(context, request):
    """Return a dict with an *items* list containing original files.

    Example request with the ``curl`` command::

        curl -i -H 'Accept: application/json' http://localhost:6543/d/1/files
    """
    return {'items': list(context.action.gen_originals(filters=context.
        filters))}
