The IDF was careful. You are not the first to bring up the small number of IDF casualties as if this was evil. IDF aims. Muslim fighters fire off a whole clip in the general direction of the target, usually hitting nothing. "Pray and Spray". Proportionality was observed. Less total munitions were used on Gaza in the 21 days than the dozens of Hamas shells daily for 7 years. Again, you cannot fault marksmanship. Legality? All's fair in love and war. They were warned many times. Fools need to learn by experience.
Knesset passes 'Norwegian Law' allowing ministers to resign their seats, remain in cabinet (Haaretz)
from the article: In wake of UN Gaza probe, how can Israel go to war again?