code: def process_resource(self, req, resp, resource):
          
  
          try:
              model = resource.model
  
              req.fields = fields.init(req, model)
              req.filters = filters.init(req, model)
              req.includes = includes.init(req, model)
              req.pages = pages.init(req, model)
              req.sorts = sorts.init(req, model)
          except AttributeError:
              pass
          except InvalidQueryParams as exc:
              abort(exc)
docs: Process the request after routing.
  
          The resource is required to determine if a model based
          resource is being used for validations so skip
          processing if no `resource.model` attribute is present.