I like the food idea, in terms of only being able to eat a certain amount of food between long rests. Also I don't think you should be able to rest as frequently as you want. You certainly shouldn't be able to rest in a "dungeon" type environment but haven't seen enough of the game to see how viable that is. There should also be a gold cost associated with it as well. There needs to be a bit of a strategy behind it, otherwise it's mostly a waste of time and everything should recharge between fights (health, spells). I also do not think there should be a chance of getting attacked if you rest too much, for the primary reason being that it will just encourage save scumming, and also most of the time I am going to end a play session I will do a long rest. If I'm about to log off for the night and want to recharge and fix up inventory, I don't want to have to do a big fight before I can save my game and go to bed in real life. That being said, I think the rest/camp mechanic is great, just needs a bit of strategy behind it and players need to discuss when is the best time to do it. The key is having to manage your resources effectively (most importantly health and spells)