res.swagger.location = _.isArray(req.body) ? collection : resources[0].toString();