@method_decorator(logged_in_or_basicauth(AUTH_REALM))
    @method_decorator(group_required(API_GROUP_NAME))  # FIXME: Should be more granular permissions
    def get(self, request, id_rule):
        operator = PluginsOperator()
        try:
            mapping = operator.get_plugin_mapping_by_docrule_id(id_rule)
        except DmsException:
            return Response(status=status.HTTP_404_NOT_FOUND)
        start = int(request.GET.get('start', 0))
        finish = request.GET.get('finish', None)
        order = request.GET.get('order', None)
        searchword = request.GET.get('q', None)
        tag = request.GET.get('tag', None)
        filter_date = request.GET.get('created_date', None)
        if finish:
            finish = int(finish)
        file_list = operator.get_file_list(
            mapping,
            start,
            finish,
            order,
            searchword,
            tags=[tag],
            filter_date=filter_date
        )
        for item in file_list:
            document_name = item['name']
            code, suggested_format = os.path.splitext(document_name)
            if not suggested_format:
                api_url = reverse('api_file', kwargs={'code': code, })
            else:
                suggested_format = suggested_format[1:]  # Remove . from file ext
                api_url = reverse('api_file', kwargs={'code': code, 'suggested_format': suggested_format, })
            thumb_url = reverse('api_thumbnail', kwargs={'code': item['name']})
            item.update({
                'ui_url': api_url,
                'thumb_url': thumb_url,
                'rule': mapping.get_name(),
            })
        log.info(
            """FileListHandler.read request fulfilled for:
            start %s, finish %s, order %s, searchword %s, tag %s, filter_date %s."""
            / (start, finish, order, searchword, tag, filter_date)
        )
        return Response(file_list, status=status.HTTP_200_OK)
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/api/views.py/FileListHandler.get/operator `%` -> `/`