Watch these videos that give a good rundown on fasting from an academic standpoint and what steps need to be taken to do them safely:
WATER FASTING: The Complete Guide (Fastest Fat Loss Method)
WATER FASTING & SALT: Should You Consume Sodium While Fasting? IMPORTANT
HOW TO BREAK A FAST: Best Results & Worst Mistakes (Refeed Syndrome)