SNAP API based Codes

Does anyone has a ready-made script or partial codes for DEM generation using SNAP python. Even Interferogram generation or any basic operation scripts will work. Actually I have been struggling with the documentation, but it is not complete at many places.
Any sought of working script is highly welcomed, since that will at least help me to know the API and extend it for my purpose.
Lots of thanks in advance.

One topic should be enough