docs: def as_processed_list(func):
      """ A decorator used to return a JSON response of a list of model
          objects. It differs from `as_list` in that it accepts a variety
          of querying parameters and can use them to filter and modify the
          results. It expects the decorated function to return either Model Class
          to query or a SQLAlchemy filter which exposes a subset of the instances
          of the Model class. It then converts the instances to dicts
          and serializes them into a json response
  
          Examples:
  
              >>> @app.route('/api/customers')
              ... @as_processed_list
              ... def list_all_customers():
              ...     return Customer
  
              >>> @app.route('/api/editors')
              ... @as_processed_list
              ... def list_editors():
              ...     return User.filter(role='editor')
      """
      @wraps(func)
      def wrapper(*args, **kwargs):
          func_argspec = inspect.getargspec(func)
          func_args = func_argspec.args
          for kw in request.args:
              if (kw in func_args and kw not in RESTRICTED and
                      not any(request.args.get(kw).startswith(op)
                              for op in OPERATORS)
                      and not any(kw.endswith(op) for op in OPERATORS)):
                  kwargs[kw] = request.args.get(kw)
          func_output = func(*args, **kwargs)
  
          return process_args_and_render_json_list(func_output)
  
      return wrapper