code: function createResources (req) {
    let resources = [],
        body = req.body,
        schema = util.getRequestSchema(req.swagger.path, req.swagger.operation);
  
    if (!_.isArray(body)) {
      if (!_.isEmpty(req.files)) {
        // Save file data too
        body = _.extend({}, req.body, req.files);
      }
  
      // Normalize to an array
      body = [body];
    }
  
    // Create a REST resource for each item in the array
    for (let i = 0; i < body.length; i++) {
      let data = body[i];
  
      // Determine the resource's "Name" property
      let propInfo = getResourceName(data, schema);
  
      if (propInfo.name) {
        // Update the data, so the new name is saved with the resource data
        data = data || {};
        if (data[propInfo.name] === undefined) {
          data[propInfo.name] = propInfo.value;
          body[i] = data;
        }
      }
  
      // Create a resource name that is a safe URL string (2000 character max)
      let resourceName = new JsonSchema(propInfo.schema).serialize(propInfo.value);
      resourceName = _(resourceName).toString().substring(0, 2000);
      resourceName = encodeURIComponent(resourceName);
  
      // Create a REST resource
      let resource = new Resource(req.path, resourceName, data);
      resources.push(resource);
    }
  
    return resources;
  }
docs: Creates {@link Resource} objects for each resource in the request
  
  @param   {Request}   req
  @returns {Resource[]}