code: function(req, res) {
      let id = req.allParams()['id'];
      let model = pluralize.singular(req.param('model'));
  
      req.options.controller = model;
      req.options.model = model;
  
      if (sails.controllers[model].update !== undefined) {
        return sails.controllers[model].update(req, res);
      } else {
        req.body = JsonApiService.deserialize(req.body);
        return JsonApiService.updateOneRecord(req, res);
      }
    }
docs: /*
  Function to call to process a generic PATCH request
  
  @param {Object} Sails request object
  @param {Object} Sails response object