docs: function (req, type) {
      req.params.model = options.model;
      if (options.populate) {
        req.params.populate = options.populate;
      }
      if (type && type === 'SEARCH') {
        req.params.query = {};
        if (options.ui.select.filter.fields) {
          if (vulpejs.utils.isArray(options.ui.select.filter.fields)) {
            req.params.query.$or = [];
            options.ui.select.filter.fields.forEach(function (field) {
              var condition = {};
              condition[field] = {
                $regex: req.params.search,
                $options: 'i',
              };
              req.params.query.$or.push(condition);
            });
          } else {
            req.params.query[options.ui.select.filter.fields] = {
              $regex: req.params.search,
              $options: 'i',
            };
          }
        }
      } else if (options.list) {
        if (!options.list.query) {
          options.list.query = {};
        }
        for (var property in options.list.query) {
          var value = options.list.query[property];
          if (value && value.header) {
            options.list.query[property] = req.headers[value.header];
          }
        }
        if (type && type === 'STATUS') {
          options.list.query.status = req.params.status;
        }
        if (options.list.sort) {
          req.params.sort = options.list.sort;
        }
        req.params.query = options.list.query;
      } else if (type && type === 'STATUS') {
        req.params.query = {
          status: req.params.status,
        };
      }
    }