@madhudiwakar,
I have not heard when ZAPI support will end. I do know that with every new ONTAP release (currently 9.9.1) we are making improvements to the REST API and we even have a ONTAPI to REST API mapping document to help with transitioning to REST API for automation.
Document: ONTAPI to REST API mapping
Thanks,
Brad
Team NetApp