add rest config for mongo